Skip to content
Snippets Groups Projects
  • Stephen Smalley's avatar
    567ee411
    Label /dev/socket/gps with its own type. · 567ee411
    Stephen Smalley authored
    
    The type was already defined and used in type transitions for cases
    where the gps socket is created at runtime by gpsd, but on some devices
    it is created by init based on an init.<board>.rc socket entry and therefore
    needs a file_contexts entry.
    
    Before:
    $ ls -Z /dev/socket/gps
    srw-rw---- gps      system            u:object_r:device:s0 gps
    
    After:
    $ ls -Z /dev/socket/gps
    srw-rw---- gps      system            u:object_r:gps_socket:s0 gps
    
    Change-Id: I8eef08d80e965fc4f3e9dd09d4fa446aaed82624
    Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
    567ee411
    History
    Label /dev/socket/gps with its own type.
    Stephen Smalley authored
    
    The type was already defined and used in type transitions for cases
    where the gps socket is created at runtime by gpsd, but on some devices
    it is created by init based on an init.<board>.rc socket entry and therefore
    needs a file_contexts entry.
    
    Before:
    $ ls -Z /dev/socket/gps
    srw-rw---- gps      system            u:object_r:device:s0 gps
    
    After:
    $ ls -Z /dev/socket/gps
    srw-rw---- gps      system            u:object_r:gps_socket:s0 gps
    
    Change-Id: I8eef08d80e965fc4f3e9dd09d4fa446aaed82624
    Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
file_contexts 8.44 KiB