Re: unlocked stdio

2016-09-22 Thread Stephen Smalley
On 09/21/2016 07:47 PM, William Roberts wrote: > Another thing I noticed rectifying the Android tree is that the > selinux/Android.mk upstream is empty, but the secondary levels are > present, any reason that hasn't been pushed? No, just that no one has submitted them upstream.

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'