All of lore.kernel.org
 help / color / mirror / Atom feed
* Help with python seobject.loginRecords
@ 2009-03-11 16:15 Joe Nall
  2009-03-11 19:35 ` Daniel J Walsh
  0 siblings, 1 reply; 11+ messages in thread
From: Joe Nall @ 2009-03-11 16:15 UTC (permalink / raw)
  To: SELinux List

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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-05-18 15:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 16:15 Help with python seobject.loginRecords Joe Nall
2009-03-11 19:35 ` Daniel J Walsh
2009-03-11 19:50   ` Joe Nall
2009-03-11 20:16     ` Daniel J Walsh
2009-03-11 20:36       ` Joe Nall
2009-03-11 20:49     ` Daniel J Walsh
2009-03-11 21:00       ` Stephen Smalley
2009-03-12 13:29         ` Daniel J Walsh
2009-04-22 21:08           ` Chad Sellers
2009-05-18 15:28             ` Joshua Brindle
2009-03-11 21:07       ` Joe Nall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.