Re: Semanage return codes...

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

 



On Tue, 2008-03-11 at 13:08 -0400, Hasan Rezaul-CHR010 wrote:
> Hi All,
> 
> Have a weird question...
> 
> I run the semanage command inside a script to create/delete user
> mappings as follows:
> 
> -------------------------------------
> semanage login -a -s staff_u Admin
> ret_code = $?
> 
> semanage login -d Admin
> ret_code = $?
> --------------------------------------
> 
> Almost always the return_code is ZERO after the command executes.
> 
> However, I have noticed, sometimes the creation or deletion of the user
> mapping actually "seems" to succeed, BUT the return_code of the semanage
> command is Non-Zero ?!?  I cant understand why ?  Does this make sense ?
> 
> Is there a man page or something out there that shows the various
> possible return/error codes of the semanage command(s) ?

What version of policycoreutils?
Should always exit with status 0 (success) or 1 (error).
Can you provide a specific example of when this has happened to you,
including output?
Are you running other processes simultaneously that are operating on the
policy store?

-- 
Stephen Smalley
National Security Agency


--
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