Merge from trunk commit 2058:

Original message:
  Description: let sanitized-helper also allow access to /usr/local.
    Patch based on work by Reuben Thomas
  Bug-Ubuntu: https://launchpad.net/bugs/1013887

  Acked-By: Jamie Strandboge <jamie@canonical.com>

Nominated-by: Steve Beattie <sbeattie@ubuntu.com>
Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Steve Beattie 2013-01-03 15:44:14 -08:00
parent 3e18698c78
commit 8e33b4a173

View file

@ -43,10 +43,11 @@ profile sanitized_helper {
/bin/* Pixr,
/sbin/* Pixr,
/usr/bin/* Pixr,
/usr/local/bin/* Pixr,
/usr/sbin/* Pixr,
# Allow exec of libexec applications in /usr/lib*
/usr/lib*/{,**/}* Pixr,
# Allow exec of libexec applications in /usr/lib* and /usr/local/lib*
/usr/{,local/}lib*/{,**/}* Pixr,
# Allow exec of software-center scripts. We may need to allow wider
# permissions for /usr/share, but for now just do this. (LP: #972367)
@ -65,7 +66,7 @@ profile sanitized_helper {
# Full access
/ r,
/** rwkl,
/{,usr/}lib{,32,64}/{,**/}*.so{,.*} m,
/{,usr/,usr/local/}lib{,32,64}/{,**/}*.so{,.*} m,
# Dangerous files
audit deny owner /**/* m, # compiled libraries