@@ -20,11 +20,11 @@ profile /usr/bin/docker (attach_disconnected, complain) {
2020
2121 umount,
2222 pivot_root,
23- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
23+ {{if ge .Version 209000 }}
2424 signal (receive) peer=@{profile_name},
2525 signal (receive) peer=unconfined,
2626 signal (send),
27- {{end}}{{end}}
27+ {{end}}
2828 network,
2929 capability,
3030 owner /** rw,
@@ -46,12 +46,12 @@ profile /usr/bin/docker (attach_disconnected, complain) {
4646 /etc/ld.so.cache r,
4747 /etc/passwd r,
4848
49- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
49+ {{if ge .Version 209000 }}
5050 ptrace peer=@{profile_name},
5151 ptrace (read) peer=docker-default,
5252 deny ptrace (trace) peer=docker-default,
5353 deny ptrace peer=/usr/bin/docker///bin/ps,
54- {{end}}{{end}}
54+ {{end}}
5555
5656 /usr/lib/** rm,
5757 /lib/** rm,
@@ -72,11 +72,11 @@ profile /usr/bin/docker (attach_disconnected, complain) {
7272 /sbin/zfs rCx,
7373 /sbin/apparmor_parser rCx,
7474
75- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
75+ {{if ge .Version 209000 }}
7676 # Transitions
7777 change_profile -> docker-*,
7878 change_profile -> unconfined,
79- {{end}}{{end}}
79+ {{end}}
8080
8181 profile /bin/cat (complain) {
8282 /etc/ld.so.cache r,
@@ -98,10 +98,10 @@ profile /usr/bin/docker (attach_disconnected, complain) {
9898 /dev/null rw,
9999 /bin/ps mr,
100100
101- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
101+ {{if ge .Version 209000 }}
102102 # We don't need ptrace so we'll deny and ignore the error.
103103 deny ptrace (read, trace),
104- {{end}}{{end}}
104+ {{end}}
105105
106106 # Quiet dac_override denials
107107 deny capability dac_override,
@@ -119,15 +119,15 @@ profile /usr/bin/docker (attach_disconnected, complain) {
119119 /proc/tty/drivers r,
120120 }
121121 profile /sbin/iptables (complain) {
122- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
122+ {{if ge .Version 209000 }}
123123 signal (receive) peer=/usr/bin/docker,
124- {{end}}{{end}}
124+ {{end}}
125125 capability net_admin,
126126 }
127127 profile /sbin/auplink flags=(attach_disconnected, complain) {
128- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
128+ {{if ge .Version 209000 }}
129129 signal (receive) peer=/usr/bin/docker,
130- {{end}}{{end}}
130+ {{end}}
131131 capability sys_admin,
132132 capability dac_override,
133133
@@ -146,9 +146,9 @@ profile /usr/bin/docker (attach_disconnected, complain) {
146146 /proc/[0-9]*/mounts rw,
147147 }
148148 profile /sbin/modprobe /bin/kmod (complain) {
149- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
149+ {{if ge .Version 209000 }}
150150 signal (receive) peer=/usr/bin/docker,
151- {{end}}{{end}}
151+ {{end}}
152152 capability sys_module,
153153 /etc/ld.so.cache r,
154154 /lib/** rm,
@@ -162,9 +162,9 @@ profile /usr/bin/docker (attach_disconnected, complain) {
162162 }
163163 # xz works via pipes, so we do not need access to the filesystem.
164164 profile /usr/bin/xz (complain) {
165- {{if ge .MajorVersion 2}}{{if ge .MinorVersion 9 }}
165+ {{if ge .Version 209000 }}
166166 signal (receive) peer=/usr/bin/docker,
167- {{end}}{{end}}
167+ {{end}}
168168 /etc/ld.so.cache r,
169169 /lib/** rm,
170170 /usr/bin/xz rm,
0 commit comments