Merge "aoc: add permissions for new sysfs node" into main

This commit is contained in:
Bryan Lavrich 2023-11-20 20:22:27 +00:00 committed by Android (Google) Code Review
commit 057e9b0f74
4 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ r_dir_file(aocd, persist_aoc_file);
# sysfs operations
allow aocd sysfs_aoc:dir search;
allow aocd sysfs_aoc_firmware:file w_file_perms;
allow aocd sysfs_aoc_notifytimeout:file r_file_perms;
# dev operations
allow aocd aoc_device:chr_file rw_file_perms;
@ -19,3 +20,4 @@ allow aocd device:dir r_dir_perms;
# set properties
set_prop(aocd, vendor_aoc_prop)
set_prop(aocd, vendor_timeout_aoc_prop)

View File

@ -4,6 +4,7 @@ type sysfs_aoc_boottime, sysfs_type, fs_type;
type sysfs_aoc_firmware, sysfs_type, fs_type;
type sysfs_aoc, sysfs_type, fs_type;
type sysfs_aoc_reset, sysfs_type, fs_type;
type sysfs_aoc_notifytimeout, sysfs_type, fs_type;
# persist
type persist_aoc_file, file_type, vendor_persist_type;

View File

@ -1,2 +1,3 @@
# AoC
vendor_internal_prop(vendor_aoc_prop)
vendor_internal_prop(vendor_timeout_aoc_prop)

View File

@ -1,2 +1,3 @@
# AoC
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