semanage: pwd.getpwname does not exist
PATCH 1/1 semanage: pwd.getpwname does not exist
Needed the following trivial patch to fix "semanage user -a hallyn" reporting that the "Linux User does not exist".
It doesn't help me to be able to log in in enforcing mode, but since I'm running gentoo hardened with cvs selinux-usr and cvs sereference, I assume I'm probably on my own. Still I'm open to any suggestions for how to get more debugging info. I guess I'll try to tweak the policy to let sysadm_t ptrace getty_t, login_t, and sshd_t.
thanks,
-serge
semanage/semanage +1 -1
@@ -35,7 +35,7 @@ class loginRecords: if exists: raise ValueError("SELinux User %s mapping already defined" % name) try: - pwd.getpwname(name) + pwd.getpwnam(name) except: raise ValueError("Linux User %s does not exist" % name)
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.