]> 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:15:44 +0000 (13:15 +0200)
commit5ea6e86672c27b272d835651302ed17525de298b
tree21f3456a193a8bd25703e48e25ff491319b2de4a
parent9a12bc245d5c68549891f432917c9b6e2fba4b33
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