Skip to content
Snippets Groups Projects
Commit 567ee411 authored by Stephen Smalley's avatar Stephen Smalley
Browse files

Label /dev/socket/gps with its own type.


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>
parent 4caf8c99
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
/dev/socket/adbd u:object_r:adbd_socket:s0 /dev/socket/adbd u:object_r:adbd_socket:s0
/dev/socket/bluetooth u:object_r:bluetooth_socket:s0 /dev/socket/bluetooth u:object_r:bluetooth_socket:s0
/dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0 /dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0
/dev/socket/gps u:object_r:gps_socket:s0
/dev/socket/installd u:object_r:installd_socket:s0 /dev/socket/installd u:object_r:installd_socket:s0
/dev/socket/keystore u:object_r:keystore_socket:s0 /dev/socket/keystore u:object_r:keystore_socket:s0
/dev/socket/mdns u:object_r:mdns_socket:s0 /dev/socket/mdns u:object_r:mdns_socket:s0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment