Wind River Support Network

HomeDefectsCGP6-411
Fixed

CGP6-411 : error trace for command chcat

Created: Mar 18, 2014    Updated: Dec 3, 2018
Resolved Date: Apr 3, 2014
Found In Version: 6.0
Fix Version: 6.0.0.6
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

It looks like the command chcat doesn't work at all. When I execute it in the enforcing mode, I got errors:

# chcat -L
Traceback (most recent call last):
  File "/usr/bin/chcat", line 413, in <module>
    sys.exit(listcats())
  File "/usr/bin/chcat", line 339, in listcats
    fd = open(selinux.selinux_translations_path())
IOError: [Errno 2] No such file or directory: '/etc/selinux/wr-mls/setrans.conf'

# run_init /usr/bin/chcat -l -d root
Authenticating root.
Password: 
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/lib64/python2.7/site-packages/seobject.py", line 593, in modify
    self.__modify(name, sename, serange)
  File "/usr/lib64/python2.7/site-packages/seobject.py", line 588, 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/lib64/python2.7/site-packages/seobject.py", line 109, in log
    message += " sename=" + sename
TypeError: cannot concatenate 'str' and 'NoneType' objects

Other Downloads


Live chat
Online