Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2abcbd0 authored by Paul Lawrence's avatar Paul Lawrence
Browse files

Fix selinux warning on tracefs systems

restorecon_recursive doesn't traverse filesystem boundaries. On
tracefs systems, tracing is a separate filesystem, so restorecon
this as well

Bug: 30963384
Test: Boot hikey, and check that there are no debugfs_tracing denials in dmesg
Change-Id: I24abd3ad80d2cfdab4f64fecee799fc0c24ed238
parent fc3e9068
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -295,6 +295,10 @@ on post-fs
    # Make sure /sys/kernel/debug (if present) is labeled properly
    restorecon_recursive /sys/kernel/debug

    # On systems with tracefs, tracing is a separate mount, so make sure
    # it too is correctly labeled
    restorecon_recursive /sys/kernel/debug/tracing

    # We chown/chmod /cache again so because mount is run as root + defaults
    chown system cache /cache
    chmod 0770 /cache