Re: [RFC] Add initial clipboard access control implementation

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

 



On Fri, 2012-09-14 at 14:07 -0400, Joshua Brindle wrote:
> Stephen Smalley wrote:
> <snip>
> > Likely of greater concern are the edge cases for Binder.getCallingPid()
> > and SELinux.getPidContext().
> >
> 
> Are there plans to upstream Binder.getContext()?

No, as per the Middleware MAC talk that we gave at LSS (slides available
from the wiki).

Anyway, I'd suggest adding some instrumentation to detect whether you
are encountering any of the interesting cases, e.g.
Binder.getCallingPid() equals Process.myPid() or SELinux.getPidContext()
returns NULL.  The former can happen for a service-internal binder call
or if the service explicitly clears the calling identity because it is
trying to do something that requires more privilege than the caller, and
the latter can happen if the caller has died.   In the former case, try
to get a traceback and see whether it is the correct behavior for that
situation.  
 
-- 
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