aoc: add permissions for new sysfs node
Resolving the following audit denials: - [ 6.450477] type=1400 audit(1699468821.992:6): avc: denied { read } for comm="aocd" name="notify_timeout_aoc_status" dev="sysfs" ino=78572 scontext=u:r:aocd:s0 tcontext=u:object_r:sysfs_aoc:s0 tclass=file permissive=0 - type=1107 audit(0.0:9): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=persist.vendor.aoc.status_request_timed_out pid=1035 uid=0 gid=0 scontext=u:r:aocd:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0' (and get for the same node) Test: on device Bug: 309950738 Change-Id: I476624a6d95667d47ada765d6fe392eecc615256 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
This commit is contained in:
parent
f382fb25df
commit
9035c70f06
@ -10,6 +10,7 @@ r_dir_file(aocd, persist_aoc_file);
|
|||||||
# sysfs operations
|
# sysfs operations
|
||||||
allow aocd sysfs_aoc:dir search;
|
allow aocd sysfs_aoc:dir search;
|
||||||
allow aocd sysfs_aoc_firmware:file w_file_perms;
|
allow aocd sysfs_aoc_firmware:file w_file_perms;
|
||||||
|
allow aocd sysfs_aoc_notifytimeout:file r_file_perms;
|
||||||
|
|
||||||
# dev operations
|
# dev operations
|
||||||
allow aocd aoc_device:chr_file rw_file_perms;
|
allow aocd aoc_device:chr_file rw_file_perms;
|
||||||
@ -19,3 +20,4 @@ allow aocd device:dir r_dir_perms;
|
|||||||
|
|
||||||
# set properties
|
# set properties
|
||||||
set_prop(aocd, vendor_aoc_prop)
|
set_prop(aocd, vendor_aoc_prop)
|
||||||
|
set_prop(aocd, vendor_timeout_aoc_prop)
|
@ -4,6 +4,7 @@ type sysfs_aoc_boottime, sysfs_type, fs_type;
|
|||||||
type sysfs_aoc_firmware, sysfs_type, fs_type;
|
type sysfs_aoc_firmware, sysfs_type, fs_type;
|
||||||
type sysfs_aoc, sysfs_type, fs_type;
|
type sysfs_aoc, sysfs_type, fs_type;
|
||||||
type sysfs_aoc_reset, sysfs_type, fs_type;
|
type sysfs_aoc_reset, sysfs_type, fs_type;
|
||||||
|
type sysfs_aoc_notifytimeout, sysfs_type, fs_type;
|
||||||
|
|
||||||
# persist
|
# persist
|
||||||
type persist_aoc_file, file_type, vendor_persist_type;
|
type persist_aoc_file, file_type, vendor_persist_type;
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
# AoC
|
# AoC
|
||||||
vendor_internal_prop(vendor_aoc_prop)
|
vendor_internal_prop(vendor_aoc_prop)
|
||||||
|
vendor_internal_prop(vendor_timeout_aoc_prop)
|
@ -1,2 +1,3 @@
|
|||||||
# AoC
|
# AoC
|
||||||
vendor.aoc.firmware.version u:object_r:vendor_aoc_prop:s0
|
vendor.aoc.firmware.version u:object_r:vendor_aoc_prop:s0
|
||||||
|
persist.vendor.aoc.status_request_timed_out u:object_r:vendor_timeout_aoc_prop:s0
|
Loading…
x
Reference in New Issue
Block a user