Re: Help with python seobject.loginRecords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/11/2009 12:15 PM, Joe Nall wrote:
I need to add login mappings in python firstboot modules during system
configuration. In my first module a simple:

seobject.loginRecords().add(username, "siterep_u", "SystemLow-SystemHigh")

works. In subsequent modules, I get an exception:

libsemanage.enter_rw: this operation requires a transaction
libsemanage.enter_rw: could not enter read-write section
Traceback (most recent call last):
File "./t", line 6, in <module>
seobject.loginRecords().add("test3", "sysadm_u", "SystemLow-SystemHigh")
File "/usr/lib64/python2.5/site-packages/seobject.py", line 442, in add
raise error
ValueError: Could not add login mapping for test3

What is the right way to do this?

joe


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx
with
the words "unsubscribe selinux" without quotes as the message.
Probably an MLS issue. firtstboot is running in a context that is not allowed to lock/manage selinux.

You probably should exec semanage rather then calling seobject so you could do a transition and not have to give a huge app like first boot the ability to manage security policy.



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux