mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# $Id$
|
|
# 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>
|
|
#include <abstractions/bash>
|
|
#include <abstractions/perl>
|
|
#include <abstractions/consoles>
|
|
#include <abstractions/nameservice>
|
|
|
|
capability chown,
|
|
capability dac_override,
|
|
capability fowner,
|
|
capability fsetid,
|
|
capability sys_resource,
|
|
|
|
/bin/bash mixr,
|
|
/etc/.pwd.lock rw,
|
|
/etc/default/useradd r,
|
|
/etc/group* rwl,
|
|
/etc/gshadow* rwl,
|
|
/etc/login.defs r,
|
|
/etc/passwd* rwl,
|
|
/etc/shadow* rwl,
|
|
/etc/pwdutils/logging r,
|
|
/etc/skel r,
|
|
/etc/skel/** r,
|
|
@{HOMEDIRS}** rw,
|
|
/proc/*/mounts r,
|
|
/proc/filesystems r,
|
|
/usr/lib*/pwdutils/*so* mr,
|
|
/usr/sbin/adduser rmix,
|
|
/usr/sbin/useradd rmix,
|
|
/usr/sbin/useradd.local rmix,
|
|
/var/log/faillog rw,
|
|
/var/log/lastlog rw,
|
|
/var/run/nscd.pid rw,
|
|
/var/run/utmp rw,
|
|
/var/spool/mail/* rw,
|
|
}
|