mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
dnsmasq: Adjust pattern for log files to comply SELinux
i.e. move '*' from beginning to before suffix. Commit025c7dc6
("dnsmasq: Add permission to open log files") added pattern, which is not compatible with SELinux. As this pattern has been in SELinux since 2011 (with recent change to accept '.log' suffix + logrotate patterns which are not relevant to AppArmor) IMHO it's better to adjust our profile. Fixes:025c7dc6
("dnsmasq: Add permission to open log files") PR: PR: https://gitlab.com/apparmor/apparmor/merge_requests/288 Signed-off-by: Petr Vorel <pvorel@suse.cz> (cherry picked from commit3ef8df6ac0
) Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
c044757de9
commit
7dce58987f
@@ -45,7 +45,7 @@ profile dnsmasq /usr/{bin,sbin}/dnsmasq flags=(attach_disconnected) {
|
|||||||
|
|
||||||
/usr/{bin,sbin}/dnsmasq mr,
|
/usr/{bin,sbin}/dnsmasq mr,
|
||||||
|
|
||||||
/var/log/*dnsmasq.log w,
|
/var/log/dnsmasq*.log w,
|
||||||
|
|
||||||
/usr/share/dnsmasq/ r,
|
/usr/share/dnsmasq/ r,
|
||||||
/usr/share/dnsmasq/* r,
|
/usr/share/dnsmasq/* r,
|
||||||
|
Reference in New Issue
Block a user