/usr/share/doc/apparmor-profiles/extras/usr.sbin.useradd is in apparmor-profiles 2.11.0-3+deb9u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | # 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>
#include <abstractions/wutmp>
capability chown,
capability dac_override,
capability fowner,
capability fsetid,
capability sys_resource,
/{usr/,}bin/bash mixr,
/etc/.pwd.lock rwk,
/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,
/etc/subuid rw,
/etc/subuid- rw,
/etc/subuid+ rw,
/etc/subuid.* rwl,
/etc/subgid rw,
/etc/subgid- rw,
/etc/subgid+ rw,
/etc/subgid.* rwl,
@{HOMEDIRS}** rw,
@{PROC}/@{pid}/mounts r,
@{PROC}/filesystems r,
/usr/lib*/pwdutils/*so* mr,
/usr/sbin/adduser rmix,
/usr/sbin/nscd rPix,
/usr/sbin/useradd rmix,
/usr/sbin/useradd.local rmix,
/var/log/faillog rw,
/{,var/}run/nscd.pid rw,
/var/spool/mail/* rw,
}
|