Stop O_CREAT logspam in permissive mode.

am: 7d4294cb4f

Change-Id: I3daa6a6ff9a5a978a12b700253b2843502b09982
This commit is contained in:
Alan Stokes 2018-03-28 20:40:58 +00:00 committed by android-build-merger
commit a93b8700f9

View file

@ -1335,3 +1335,12 @@ neverallow domain {
dontaudit domain proc_type:dir write;
dontaudit domain sysfs_type:dir write;
# These are only needed in permissive mode - in enforcing mode the
# directory write check fails and so these are never attempted.
userdebug_or_eng(`
dontaudit domain proc_type:dir add_name;
dontaudit domain sysfs_type:dir add_name;
dontaudit domain proc_type:file create;
dontaudit domain sysfs_type:file create;
')