semanage translation -a is not working

Kazuki Omo omok at honto.info
Mon Jun 12 04:38:07 UTC 2006


Dear, Folks,

My environment is;
FC5 (yum updated on 6/12/2006 JST)
policycoreutils-1.30.10-1.fc5
libselinux-python-1.30-1.fc5
selinux-policy-2.2.40-1.fc5
libselinux-1.30-1.fc5
libselinux-devel-1.30-1.fc5
selinux-policy-2.2.38-1.fc5
selinux-policy-targeted-2.2.40-1.fc5

When I try to add additional translations to my FC5 in
permissive mode, I got error messages as follow;

----------------------------------------------------------------
[root at vmfc5omo ~]# semanage translation -a -T blahblahblah s0:c6
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 239, in ?
    OBJECT.add(target, setrans)
  File "/usr/lib/python2.4/site-packages/seobject.py", line 180, in add
    self.save()
  File "/usr/lib/python2.4/site-packages/seobject.py", line 198, in save
    fd.write(self.out())
AttributeError: 'int' object has no attribute 'write'
----------------------------------------------------------------
and can't add any lines on setrans.conf.

"-l" option seems working correctly;
----------------------------------------------------------------
[root at vmfc5omo ~]# semanage translation -l

Level                     Translation

s0                        
s0-s0:c0.c255             SystemLow-SystemHigh
s0:c0.c255                SystemHigh
----------------------------------------------------------------

I checked "How do I add additional translations to my MCS/MLS system?"
on http://fedora.redhat.com/docs/selinux-faq-fc5/#id2964683.

Is this a bug?

Regards,
-- 
Kazuki Omo: omok at honto.info
LIDS Japanese Information:
Japanese: http://www.selinux.gr.jp/LIDS-JP/index.html
English:  http://www.selinux.gr.jp/LIDS-JP/LIDS_en/index.html




More information about the fedora-selinux-list mailing list