All of lore.kernel.org
 help / color / mirror / Atom feed
* getfscreatecon(3)
@ 2006-04-26  3:37 Russell Coker
  2006-04-26 11:44 ` getfscreatecon(3) Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Russell Coker @ 2006-04-26  3:37 UTC (permalink / raw)
  To: SE-Linux

RETURN VALUE
       On error -1 is returned.

       On success getfscreatecon  returns  the  length  of  the  context  (not
       including  the  trailing zero byte).  On success setfscreatecon returns
       0.


Currently getfscreatecon() returns 0 on success.  Should we change the man 
page or change the library?

I think that it would be best to change the library.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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] 3+ messages in thread

* Re: getfscreatecon(3)
  2006-04-26  3:37 getfscreatecon(3) Russell Coker
@ 2006-04-26 11:44 ` Stephen Smalley
  2006-04-26 12:12   ` getfscreatecon(3) Daniel J Walsh
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2006-04-26 11:44 UTC (permalink / raw)
  To: russell; +Cc: SE-Linux

On Wed, 2006-04-26 at 13:37 +1000, Russell Coker wrote:
> RETURN VALUE
>        On error -1 is returned.
> 
>        On success getfscreatecon  returns  the  length  of  the  context  (not
>        including  the  trailing zero byte).  On success setfscreatecon returns
>        0.
> 
> 
> Currently getfscreatecon() returns 0 on success.  Should we change the man 
> page or change the library?
> 
> I think that it would be best to change the library.

The man page should be fixed.  Or you'd have to change all of the
process-oriented get*con functions.  As the string is NUL-terminated,
you don't need the length.

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

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

* Re: getfscreatecon(3)
  2006-04-26 11:44 ` getfscreatecon(3) Stephen Smalley
@ 2006-04-26 12:12   ` Daniel J Walsh
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2006-04-26 12:12 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: russell, SE-Linux

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

Stephen Smalley wrote:
> On Wed, 2006-04-26 at 13:37 +1000, Russell Coker wrote:
>   
>> RETURN VALUE
>>        On error -1 is returned.
>>
>>        On success getfscreatecon  returns  the  length  of  the  context  (not
>>        including  the  trailing zero byte).  On success setfscreatecon returns
>>        0.
>>
>>
>> Currently getfscreatecon() returns 0 on success.  Should we change the man 
>> page or change the library?
>>
>> I think that it would be best to change the library.
>>     
>
> The man page should be fixed.  Or you'd have to change all of the
> process-oriented get*con functions.  As the string is NUL-terminated,
> you don't need the length.
>
>   


[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 667 bytes --]

diff --exclude-from=exclude -N -u -r nsalibselinux/man/man3/getfscreatecon.3 libselinux-1.30.3/man/man3/getfscreatecon.3
--- nsalibselinux/man/man3/getfscreatecon.3	2004-05-20 11:32:44.000000000 -0400
+++ libselinux-1.30.3/man/man3/getfscreatecon.3	2006-04-26 08:10:37.000000000 -0400
@@ -32,9 +32,7 @@
 save, reset, and restore the fscreate context to avoid unexpected behaviors.
 .SH "RETURN VALUE"
 On error -1 is returned.
-
-On success getfscreatecon returns the length of the context (not including
-the trailing zero byte).  On success setfscreatecon returns 0.
+On success 0 is returned.
 
 .SH "SEE ALSO"
 .BR freecon "(3), " getcon "(3), " getexeccon "(3)"

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

end of thread, other threads:[~2006-04-26 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-26  3:37 getfscreatecon(3) Russell Coker
2006-04-26 11:44 ` getfscreatecon(3) Stephen Smalley
2006-04-26 12:12   ` getfscreatecon(3) Daniel J Walsh

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.