]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chfn: chsh: use selinux_check_passwd_access()
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2016 11:15:44 +0000 (13:15 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2016 11:38:13 +0000 (13:38 +0200)
commitdd5ef107adfe2c05f7d2e3e3543d3c042868b6fb
treedede936a90a0ad071a24783c7ec4a77db8041116
parent3d7cad18e79640dfd00e43ba4b789359c8469e8b
chfn: chsh: use selinux_check_passwd_access()

* selinux/av_permissions.h and magic constants are deprecated, the
  recommended solution is to use string_to_security_class() and
  string_to_av_perm() to get access vector

* it also seems that selinux_check_passwd_access() does exactly the
  same as our checkAccess(), let's use it.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chfn.c
login-utils/chsh.c
login-utils/selinux_utils.c
login-utils/selinux_utils.h