[PATCH] Fix redefinition of XATTR_NAME_SELINUX

2016-09-21 Thread william . c . roberts
From: William Roberts When the Kernel UAPI header is present, this error occurs: external/selinux/libselinux/src/policy.h:7:9: warning: 'XATTR_NAME_SELINUX' macro redefined [-Wmacro-redefined] \#define XATTR_NAME_SELINUX "security.selinux" ^

Re: unlocked stdio

2016-09-21 Thread William Roberts
On Wed, Sep 21, 2016 at 2:48 PM, William Roberts wrote: > On Sep 21, 2016 13:16, "Stephen Smalley" wrote: >> >> On 09/21/2016 04:11 PM, William Roberts wrote: >> > On Sep 21, 2016 13:06, "Stephen Smalley" > >

Re: unlocked stdio

2016-09-21 Thread William Roberts
On Sep 21, 2016 13:16, "Stephen Smalley" wrote: > > On 09/21/2016 04:11 PM, William Roberts wrote: > > On Sep 21, 2016 13:06, "Stephen Smalley" > > wrote: > >> > >> On 09/21/2016 03:57 PM, Roberts, William C wrote: > >> >

Re: unlocked stdio

2016-09-21 Thread Stephen Smalley
On 09/21/2016 04:11 PM, William Roberts wrote: > On Sep 21, 2016 13:06, "Stephen Smalley" > wrote: >> >> On 09/21/2016 03:57 PM, Roberts, William C wrote: >> > Correction, it’s just fgets_unlocked, it appears to support the others. >> >> Seems like

Re: unlocked stdio

2016-09-21 Thread William Roberts
On Sep 21, 2016 13:06, "Stephen Smalley" wrote: > > On 09/21/2016 03:57 PM, Roberts, William C wrote: > > Correction, it’s just fgets_unlocked, it appears to support the others. > > Seems like a bug in bionic, but we can work around it by: > #ifdef ANDROID > #define

Re: unlocked stdio

2016-09-21 Thread Stephen Smalley
On 09/21/2016 03:57 PM, Roberts, William C wrote: > Correction, it’s just fgets_unlocked, it appears to support the others. Seems like a bug in bionic, but we can work around it by: #ifdef ANDROID #define fgets_unlocked(x) fgets(x) #endif in selinux_internal.h or some similar internal header.

RE: unlocked stdio

2016-09-21 Thread Roberts, William C
Correction, it's just fgets_unlocked, it appears to support the others. From: Roberts, William C Sent: Wednesday, September 21, 2016 12:53 PM To: 'seandroid-list@tycho.nsa.gov' ; 'seli...@tycho.nsa.gov' ; 's...@tycho.nsa.gov'

unlocked stdio

2016-09-21 Thread Roberts, William C
What was the purpose of using unlocked stdio in libselinux? Bionic doesn't support it, is it really necessary? Bill ___ Seandroid-list mailing list Seandroid-list@tycho.nsa.gov To unsubscribe, send email to seandroid-list-le...@tycho.nsa.gov. To get