mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00

add machine script = /usr/sbin/smbldap-useradd -t 5 -w "%u" smbd obviously needs x permissions for smbldap-useradd. The commit also adds a new profile for usr.sbin.smbldap-useradd (based on the audit.log from Alexis Pellicier). Additionally, I moved the "/etc/samba/* rwk" rule next to the other /etc-related rules in the smbd profile. References: https://bugzilla.novell.com/show_bug.cgi?id=738041
37 lines
858 B
Text
37 lines
858 B
Text
# Last Modified: Tue Jan 3 00:17:40 2012
|
|
#include <tunables/global>
|
|
|
|
/usr/sbin/smbldap-useradd {
|
|
#include <abstractions/base>
|
|
#include <abstractions/bash>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/perl>
|
|
|
|
/dev/tty rw,
|
|
/bin/bash ix,
|
|
/etc/init.d/nscd Cx,
|
|
/etc/shadow r,
|
|
/etc/smbldap-tools/smbldap.conf r,
|
|
/etc/smbldap-tools/smbldap_bind.conf r,
|
|
/usr/sbin/smbldap-useradd r,
|
|
/usr/sbin/smbldap_tools.pm r,
|
|
/var/log/samba/log.smbd w,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.smbldap-useradd>
|
|
|
|
profile /etc/init.d/nscd {
|
|
#include <abstractions/base>
|
|
#include <abstractions/nameservice>
|
|
|
|
capability sys_ptrace,
|
|
|
|
/bin/bash r,
|
|
/bin/mountpoint rix,
|
|
/bin/systemctl rix,
|
|
/dev/tty rw,
|
|
/etc/init.d/nscd r,
|
|
/etc/rc.status r,
|
|
|
|
}
|
|
}
|