mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Update useradd and userdel profiles to use wutmp abstraction.
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <abstractions/perl>
|
#include <abstractions/perl>
|
||||||
#include <abstractions/consoles>
|
#include <abstractions/consoles>
|
||||||
#include <abstractions/nameservice>
|
#include <abstractions/nameservice>
|
||||||
|
#include <abstractions/wutmp>
|
||||||
|
|
||||||
capability chown,
|
capability chown,
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
@@ -44,8 +45,6 @@
|
|||||||
/usr/sbin/useradd rmix,
|
/usr/sbin/useradd rmix,
|
||||||
/usr/sbin/useradd.local rmix,
|
/usr/sbin/useradd.local rmix,
|
||||||
/var/log/faillog rw,
|
/var/log/faillog rw,
|
||||||
/var/log/lastlog rw,
|
|
||||||
/{,var/}run/nscd.pid rw,
|
/{,var/}run/nscd.pid rw,
|
||||||
/{,var/}run/utmp rw,
|
|
||||||
/var/spool/mail/* rw,
|
/var/spool/mail/* rw,
|
||||||
}
|
}
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#include <abstractions/consoles>
|
#include <abstractions/consoles>
|
||||||
#include <abstractions/perl>
|
#include <abstractions/perl>
|
||||||
#include <abstractions/nameservice>
|
#include <abstractions/nameservice>
|
||||||
|
#include <abstractions/wutmp>
|
||||||
|
|
||||||
capability chown,
|
capability chown,
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
@@ -44,9 +45,7 @@
|
|||||||
/usr/sbin/userdel-post.local rmix,
|
/usr/sbin/userdel-post.local rmix,
|
||||||
/usr/sbin/userdel-pre.local rmix,
|
/usr/sbin/userdel-pre.local rmix,
|
||||||
/usr/sbin/userdel rmix,
|
/usr/sbin/userdel rmix,
|
||||||
/var/log/lastlog rw,
|
|
||||||
# XXX
|
# XXX
|
||||||
/{,var/}run/nscd.pid r,
|
/{,var/}run/nscd.pid r,
|
||||||
/{,var/}run/utmp rw,
|
|
||||||
/var/spool/mail/* wl,
|
/var/spool/mail/* wl,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user