]> git.ipfire.org Git - thirdparty/shadow.git/commit
ch(g)passwd: Check selinux permissions upon startup
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 3 Mar 2023 10:46:33 +0000 (11:46 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 31 May 2023 07:44:25 +0000 (09:44 +0200)
commit3c7327842cdcebe15caecb84a14c2b6b6eb10560
tree14d9a4dee2c051b9a831c9ff2efaa668113937d7
parentb422e3c31691412f0a5404d09f7b328477e23c48
ch(g)passwd: Check selinux permissions upon startup

The permission also need to be checked before process_root_flag() since
that can chroot into non-selinux environment (unavailable selinux mount
point for example).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/chgpasswd.c
src/chpasswd.c