Research
.
Skip Search Box

SELinux Mailing List

[trivial patch] semanage: pwd.getpwname does not exist

From: Serge E. Hallyn <serue_at_us.ibm.com>
Date: Wed, 21 Dec 2005 16:39:33 -0600


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

Index: policycoreutils/semanage/semanage


  • policycoreutils.orig/semanage/semanage 2005-12-21 16:25:15.000000000 -0600 +++ policycoreutils/semanage/semanage 2005-12-21 16:25:32.000000000 -0600 @@ -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 majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. Received on Wed 21 Dec 2005 - 17:39:43 EST

 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service