2006-04-12 20:35:41 +00:00
|
|
|
# $Id$
|
2006-04-11 21:52:54 +00:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002-2005 Novell/SUSE
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include <tunables/global>
|
|
|
|
|
|
|
|
/usr/sbin/useradd {
|
|
|
|
#include <abstractions/authentication>
|
|
|
|
#include <abstractions/base>
|
2006-11-13 09:53:10 +00:00
|
|
|
#include <abstractions/bash>
|
2006-08-04 18:13:59 +00:00
|
|
|
#include <abstractions/perl>
|
2006-04-11 21:52:54 +00:00
|
|
|
#include <abstractions/consoles>
|
|
|
|
#include <abstractions/nameservice>
|
|
|
|
|
2006-11-13 09:53:10 +00:00
|
|
|
capability chown,
|
|
|
|
capability dac_override,
|
|
|
|
capability fowner,
|
|
|
|
capability fsetid,
|
2006-04-11 21:52:54 +00:00
|
|
|
capability sys_resource,
|
|
|
|
|
2006-11-13 09:53:10 +00:00
|
|
|
/bin/bash mixr,
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/.pwd.lock rw,
|
|
|
|
/etc/default/useradd r,
|
|
|
|
/etc/group* rwl,
|
|
|
|
/etc/gshadow* rwl,
|
|
|
|
/etc/login.defs r,
|
|
|
|
/etc/passwd* rwl,
|
|
|
|
/etc/shadow* rwl,
|
2006-11-13 09:53:10 +00:00
|
|
|
/etc/pwdutils/logging r,
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/skel r,
|
|
|
|
/etc/skel/** r,
|
|
|
|
@{HOMEDIRS}** rw,
|
|
|
|
/proc/*/mounts r,
|
|
|
|
/proc/filesystems r,
|
2006-11-13 09:53:10 +00:00
|
|
|
/usr/lib*/pwdutils/*so* mr,
|
2006-08-04 18:13:59 +00:00
|
|
|
/usr/sbin/adduser rmix,
|
|
|
|
/usr/sbin/useradd rmix,
|
2006-11-13 09:53:10 +00:00
|
|
|
/usr/sbin/useradd.local rmix,
|
2006-04-11 21:52:54 +00:00
|
|
|
/var/log/faillog rw,
|
|
|
|
/var/log/lastlog rw,
|
|
|
|
/var/run/nscd.pid rw,
|
|
|
|
/var/run/utmp rw,
|
|
|
|
/var/spool/mail/* rw,
|
|
|
|
}
|