Skip to content
Snippets Groups Projects
  • Stephen Smalley's avatar
    b3cb9695
    Clarify init_shell, shell, and su domain usage. · b3cb9695
    Stephen Smalley authored
    
    init_shell domain is now only used for shell commands or scripts
    invoked by init*.rc files, never for an interactive shell.  It
    was being used for console service for a while but console service
    is now assigned shell domain via seclabel in init.rc.  We may want
    to reconsider the shelldomain rules for init_shell and whether they
    are still appropriate.
    
    shell domain is now used by both adb shell and console service, both
    of which also run in the shell UID.
    
    su domain is now used not only for /system/bin/su but also for
    adbd and its descendants after an adb root is performed.
    
    Change-Id: I502ab98aafab7dafb8920ccaa25e8fde14a8f572
    Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
    b3cb9695
    History
    Clarify init_shell, shell, and su domain usage.
    Stephen Smalley authored
    
    init_shell domain is now only used for shell commands or scripts
    invoked by init*.rc files, never for an interactive shell.  It
    was being used for console service for a while but console service
    is now assigned shell domain via seclabel in init.rc.  We may want
    to reconsider the shelldomain rules for init_shell and whether they
    are still appropriate.
    
    shell domain is now used by both adb shell and console service, both
    of which also run in the shell UID.
    
    su domain is now used not only for /system/bin/su but also for
    adbd and its descendants after an adb root is performed.
    
    Change-Id: I502ab98aafab7dafb8920ccaa25e8fde14a8f572
    Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>