Skip to content
Snippets Groups Projects
Select Git revision
  • c1a0e8a214d2e04149d4243d5d45f7d0bebcc409
  • master default
  • develop
  • borders
  • tests
  • 16
  • 15
  • gaps
  • v1.6.1
  • v1.6
  • v1.5
  • v1.4
  • v1.3.3
  • v1.3.2
  • v1.3.2rc2
  • v1.3.1rc1
  • v1.3.1.2
  • v1.3.1.1
  • v1.3.1
  • v1.3
  • v1.3rc2
  • v1.3rc1
  • v1.2.1
  • v1.2
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
28 results

layout.js

Blame
  • toolbox.te 1.01 KiB
    # Any toolbox command run by init.
    # At present, the only known usage is for running mkswap via fs_mgr.
    # Do NOT use this domain for toolbox when run by any other domain.
    type toolbox, domain;
    type toolbox_exec, exec_type, file_type;
    
    init_daemon_domain(toolbox)
    
    # /dev/__null__ created by init prior to policy load,
    # open fd inherited by fsck.
    allow toolbox tmpfs:chr_file { read write ioctl };
    
    # Inherit and use pty created by android_fork_execvp_ext().
    allow toolbox devpts:chr_file { read write getattr ioctl };
    
    # mkswap-specific.
    # Read/write block devices used for swap partitions.
    # Assign swap_block_device type any such partition in your
    # device/<vendor>/<product>/sepolicy/file_contexts file.
    allow toolbox block_device:dir search;
    allow toolbox swap_block_device:blk_file rw_file_perms;
    
    # Only allow entry from init via the toolbox binary.
    neverallow { domain -init } toolbox:process transition;
    neverallow domain toolbox:process dyntransition;
    neverallow toolbox { file_type fs_type -toolbox_exec}:file entrypoint;