Your message dated Sun, 18 May 2014 19:18:44 +0200
with message-id <[email protected]>
has caused the   report #734806,
regarding policycoreutils: semanage login -m -s doesn't work
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
734806: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734806
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Hello,

On a machine without python-audit installed, changing the seuser is
creating the following backtrace.

$ sudo semanage login -m -s root root
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 840, in <module>
    do_parser()
  File "/usr/sbin/semanage", line 819, in do_parser
    args.func(args)
  File "/usr/sbin/semanage", line 201, in handleLogin
    OBJECT.modify(args.login, args.seuser, args.range)
  File "/usr/lib/python2.7/dist-packages/seobject.py", line 594, in modify
    self.__modify(name, sename, serange)
  File "/usr/lib/python2.7/dist-packages/seobject.py", line 589, in __modify
    self.mylog.log("login", name,sename=self.sename,serange=self.serange, 
serole=",".join(serole), oldserole=",".join(oldserole), 
oldsename=self.oldsename, oldserange=self.oldserange);
  File "/usr/lib/python2.7/dist-packages/seobject.py", line 110, in log
    message += " sename=" + sename
TypeError: cannot concatenate 'str' and 'NoneType' objects

Looking at the code, it seems that semange is only checking if sename
is an empty string or not (if sename != "") but here it seems that
sename is a None object. I guess the code should also check this?

Cheers,

Laurent Bigonville

--- End Message ---
_______________________________________________
SELinux-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/selinux-devel

Reply via email to