def AaExample.small_files

bend-osdev-apparmor@0.1.0.0 · example.bend:59

import bend-osdev-apparmor@0.1.0.0/example.bend as Example
import Base
import bend-osdev-apparmor@0.1.0.0/apparmor.bend as A

59# A smaller policy, for the laws' vectors (the checker's kernel evaluates
60# them, so they are kept short)
61def AaExample.small_files() -> List<&2, A.AaSource>:
62  [AaExample.source("t", "@{H} = /home/*/ /root/\n"), AaExample.source("a", "/lib/** mr,\n"), AaExample.source("m", "include <t>\n/usr/bin/foo {\n  include <a>\n  include <a>\n  deny /etc/shadow r,\n  @{H}/f rw,\n  /bin/x px,\n}\nprofile bar /bin/x flags=(complain) {\n}\n")]

Uses (3)

Used by (1)