| #line 1 "external/sepolicy/security_classes" |
| # FLASK |
| |
| # |
| # Define the security object classes |
| # |
| |
| # Classes marked as userspace are classes |
| # for userspace object managers |
| |
| class capability |
| |
| # file-related classes |
| class file |
| |
| # |
| # Define a common prefix for file access vectors. |
| # |
| |
| common file |
| { |
| ioctl |
| read |
| write |
| create |
| getattr |
| setattr |
| lock |
| relabelfrom |
| relabelto |
| append |
| unlink |
| link |
| rename |
| execute |
| swapon |
| quotaon |
| mounton |
| } |
| |
| class file |
| inherits file |
| { |
| execute_no_trans |
| entrypoint |
| execmod |
| open |
| audit_access |
| } |
| |
| class capability |
| { |
| # The capabilities are defined in include/linux/capability.h |
| # Capabilities >= 32 are defined in the capability2 class. |
| # Care should be taken to ensure that these are consistent with |
| # those definitions. (Order matters) |
| |
| chown |
| dac_override |
| dac_read_search |
| fowner |
| fsetid |
| kill |
| setgid |
| setuid |
| setpcap |
| linux_immutable |
| net_bind_service |
| net_broadcast |
| net_admin |
| net_raw |
| ipc_lock |
| ipc_owner |
| sys_module |
| sys_rawio |
| sys_chroot |
| sys_ptrace |
| sys_pacct |
| sys_admin |
| sys_boot |
| sys_nice |
| sys_resource |
| sys_time |
| sys_tty_config |
| mknod |
| lease |
| audit_write |
| audit_control |
| setfcap |
| } |
| |
| ######################################## |
| # |
| # Basic level names for system low and high |
| # |
| |
| |
| #line 1 "external/sepolicy/mls" |
| ######################################### |
| # MLS declarations |
| # |
| |
| # Generate the desired number of sensitivities and categories. |
| |
| #line 6 |
| # Each sensitivity has a name and zero or more aliases. |
| #line 6 |
| sensitivity s0; |
| #line 6 |
| |
| #line 6 |
| |
| #line 6 |
| # Define the ordering of the sensitivity levels (least to greatest) |
| #line 6 |
| dominance { s0 } |
| #line 6 |
| |
| category c0; |
| #line 7 |
| category c1; |
| #line 7 |
| category c2; |
| #line 7 |
| category c3; |
| #line 7 |
| category c4; |
| #line 7 |
| category c5; |
| #line 7 |
| category c6; |
| #line 7 |
| category c7; |
| #line 7 |
| category c8; |
| #line 7 |
| category c9; |
| #line 7 |
| category c10; |
| #line 7 |
| category c11; |
| #line 7 |
| category c12; |
| #line 7 |
| category c13; |
| #line 7 |
| category c14; |
| #line 7 |
| category c15; |
| #line 7 |
| category c16; |
| #line 7 |
| category c17; |
| #line 7 |
| category c18; |
| #line 7 |
| category c19; |
| #line 7 |
| category c20; |
| #line 7 |
| category c21; |
| #line 7 |
| category c22; |
| #line 7 |
| category c23; |
| #line 7 |
| category c24; |
| #line 7 |
| category c25; |
| #line 7 |
| category c26; |
| #line 7 |
| category c27; |
| #line 7 |
| category c28; |
| #line 7 |
| category c29; |
| #line 7 |
| category c30; |
| #line 7 |
| category c31; |
| #line 7 |
| category c32; |
| #line 7 |
| category c33; |
| #line 7 |
| category c34; |
| #line 7 |
| category c35; |
| #line 7 |
| category c36; |
| #line 7 |
| category c37; |
| #line 7 |
| category c38; |
| #line 7 |
| category c39; |
| #line 7 |
| category c40; |
| #line 7 |
| category c41; |
| #line 7 |
| category c42; |
| #line 7 |
| category c43; |
| #line 7 |
| category c44; |
| #line 7 |
| category c45; |
| #line 7 |
| category c46; |
| #line 7 |
| category c47; |
| #line 7 |
| category c48; |
| #line 7 |
| category c49; |
| #line 7 |
| category c50; |
| #line 7 |
| category c51; |
| #line 7 |
| category c52; |
| #line 7 |
| category c53; |
| #line 7 |
| category c54; |
| #line 7 |
| category c55; |
| #line 7 |
| category c56; |
| #line 7 |
| category c57; |
| #line 7 |
| category c58; |
| #line 7 |
| category c59; |
| #line 7 |
| category c60; |
| #line 7 |
| category c61; |
| #line 7 |
| category c62; |
| #line 7 |
| category c63; |
| #line 7 |
| category c64; |
| #line 7 |
| category c65; |
| #line 7 |
| category c66; |
| #line 7 |
| category c67; |
| #line 7 |
| category c68; |
| #line 7 |
| category c69; |
| #line 7 |
| category c70; |
| #line 7 |
| category c71; |
| #line 7 |
| category c72; |
| #line 7 |
| category c73; |
| #line 7 |
| category c74; |
| #line 7 |
| category c75; |
| #line 7 |
| category c76; |
| #line 7 |
| category c77; |
| #line 7 |
| category c78; |
| #line 7 |
| category c79; |
| #line 7 |
| category c80; |
| #line 7 |
| category c81; |
| #line 7 |
| category c82; |
| #line 7 |
| category c83; |
| #line 7 |
| category c84; |
| #line 7 |
| category c85; |
| #line 7 |
| category c86; |
| #line 7 |
| category c87; |
| #line 7 |
| category c88; |
| #line 7 |
| category c89; |
| #line 7 |
| category c90; |
| #line 7 |
| category c91; |
| #line 7 |
| category c92; |
| #line 7 |
| category c93; |
| #line 7 |
| category c94; |
| #line 7 |
| category c95; |
| #line 7 |
| category c96; |
| #line 7 |
| category c97; |
| #line 7 |
| category c98; |
| #line 7 |
| category c99; |
| #line 7 |
| category c100; |
| #line 7 |
| category c101; |
| #line 7 |
| category c102; |
| #line 7 |
| category c103; |
| #line 7 |
| category c104; |
| #line 7 |
| category c105; |
| #line 7 |
| category c106; |
| #line 7 |
| category c107; |
| #line 7 |
| category c108; |
| #line 7 |
| category c109; |
| #line 7 |
| category c110; |
| #line 7 |
| category c111; |
| #line 7 |
| category c112; |
| #line 7 |
| category c113; |
| #line 7 |
| category c114; |
| #line 7 |
| category c115; |
| #line 7 |
| category c116; |
| #line 7 |
| category c117; |
| #line 7 |
| category c118; |
| #line 7 |
| category c119; |
| #line 7 |
| category c120; |
| #line 7 |
| category c121; |
| #line 7 |
| category c122; |
| #line 7 |
| category c123; |
| #line 7 |
| category c124; |
| #line 7 |
| category c125; |
| #line 7 |
| category c126; |
| #line 7 |
| category c127; |
| #line 7 |
| category c128; |
| #line 7 |
| category c129; |
| #line 7 |
| category c130; |
| #line 7 |
| category c131; |
| #line 7 |
| category c132; |
| #line 7 |
| category c133; |
| #line 7 |
| category c134; |
| #line 7 |
| category c135; |
| #line 7 |
| category c136; |
| #line 7 |
| category c137; |
| #line 7 |
| category c138; |
| #line 7 |
| category c139; |
| #line 7 |
| category c140; |
| #line 7 |
| category c141; |
| #line 7 |
| category c142; |
| #line 7 |
| category c143; |
| #line 7 |
| category c144; |
| #line 7 |
| category c145; |
| #line 7 |
| category c146; |
| #line 7 |
| category c147; |
| #line 7 |
| category c148; |
| #line 7 |
| category c149; |
| #line 7 |
| category c150; |
| #line 7 |
| category c151; |
| #line 7 |
| category c152; |
| #line 7 |
| category c153; |
| #line 7 |
| category c154; |
| #line 7 |
| category c155; |
| #line 7 |
| category c156; |
| #line 7 |
| category c157; |
| #line 7 |
| category c158; |
| #line 7 |
| category c159; |
| #line 7 |
| category c160; |
| #line 7 |
| category c161; |
| #line 7 |
| category c162; |
| #line 7 |
| category c163; |
| #line 7 |
| category c164; |
| #line 7 |
| category c165; |
| #line 7 |
| category c166; |
| #line 7 |
| category c167; |
| #line 7 |
| category c168; |
| #line 7 |
| category c169; |
| #line 7 |
| category c170; |
| #line 7 |
| category c171; |
| #line 7 |
| category c172; |
| #line 7 |
| category c173; |
| #line 7 |
| category c174; |
| #line 7 |
| category c175; |
| #line 7 |
| category c176; |
| #line 7 |
| category c177; |
| #line 7 |
| category c178; |
| #line 7 |
| category c179; |
| #line 7 |
| category c180; |
| #line 7 |
| category c181; |
| #line 7 |
| category c182; |
| #line 7 |
| category c183; |
| #line 7 |
| category c184; |
| #line 7 |
| category c185; |
| #line 7 |
| category c186; |
| #line 7 |
| category c187; |
| #line 7 |
| category c188; |
| #line 7 |
| category c189; |
| #line 7 |
| category c190; |
| #line 7 |
| category c191; |
| #line 7 |
| category c192; |
| #line 7 |
| category c193; |
| #line 7 |
| category c194; |
| #line 7 |
| category c195; |
| #line 7 |
| category c196; |
| #line 7 |
| category c197; |
| #line 7 |
| category c198; |
| #line 7 |
| category c199; |
| #line 7 |
| category c200; |
| #line 7 |
| category c201; |
| #line 7 |
| category c202; |
| #line 7 |
| category c203; |
| #line 7 |
| category c204; |
| #line 7 |
| category c205; |
| #line 7 |
| category c206; |
| #line 7 |
| category c207; |
| #line 7 |
| category c208; |
| #line 7 |
| category c209; |
| #line 7 |
| category c210; |
| #line 7 |
| category c211; |
| #line 7 |
| category c212; |
| #line 7 |
| category c213; |
| #line 7 |
| category c214; |
| #line 7 |
| category c215; |
| #line 7 |
| category c216; |
| #line 7 |
| category c217; |
| #line 7 |
| category c218; |
| #line 7 |
| category c219; |
| #line 7 |
| category c220; |
| #line 7 |
| category c221; |
| #line 7 |
| category c222; |
| #line 7 |
| category c223; |
| #line 7 |
| category c224; |
| #line 7 |
| category c225; |
| #line 7 |
| category c226; |
| #line 7 |
| category c227; |
| #line 7 |
| category c228; |
| #line 7 |
| category c229; |
| #line 7 |
| category c230; |
| #line 7 |
| category c231; |
| #line 7 |
| category c232; |
| #line 7 |
| category c233; |
| #line 7 |
| category c234; |
| #line 7 |
| category c235; |
| #line 7 |
| category c236; |
| #line 7 |
| category c237; |
| #line 7 |
| category c238; |
| #line 7 |
| category c239; |
| #line 7 |
| category c240; |
| #line 7 |
| category c241; |
| #line 7 |
| category c242; |
| #line 7 |
| category c243; |
| #line 7 |
| category c244; |
| #line 7 |
| category c245; |
| #line 7 |
| category c246; |
| #line 7 |
| category c247; |
| #line 7 |
| category c248; |
| #line 7 |
| category c249; |
| #line 7 |
| category c250; |
| #line 7 |
| category c251; |
| #line 7 |
| category c252; |
| #line 7 |
| category c253; |
| #line 7 |
| category c254; |
| #line 7 |
| category c255; |
| #line 7 |
| category c256; |
| #line 7 |
| category c257; |
| #line 7 |
| category c258; |
| #line 7 |
| category c259; |
| #line 7 |
| category c260; |
| #line 7 |
| category c261; |
| #line 7 |
| category c262; |
| #line 7 |
| category c263; |
| #line 7 |
| category c264; |
| #line 7 |
| category c265; |
| #line 7 |
| category c266; |
| #line 7 |
| category c267; |
| #line 7 |
| category c268; |
| #line 7 |
| category c269; |
| #line 7 |
| category c270; |
| #line 7 |
| category c271; |
| #line 7 |
| category c272; |
| #line 7 |
| category c273; |
| #line 7 |
| category c274; |
| #line 7 |
| category c275; |
| #line 7 |
| category c276; |
| #line 7 |
| category c277; |
| #line 7 |
| category c278; |
| #line 7 |
| category c279; |
| #line 7 |
| category c280; |
| #line 7 |
| category c281; |
| #line 7 |
| category c282; |
| #line 7 |
| category c283; |
| #line 7 |
| category c284; |
| #line 7 |
| category c285; |
| #line 7 |
| category c286; |
| #line 7 |
| category c287; |
| #line 7 |
| category c288; |
| #line 7 |
| category c289; |
| #line 7 |
| category c290; |
| #line 7 |
| category c291; |
| #line 7 |
| category c292; |
| #line 7 |
| category c293; |
| #line 7 |
| category c294; |
| #line 7 |
| category c295; |
| #line 7 |
| category c296; |
| #line 7 |
| category c297; |
| #line 7 |
| category c298; |
| #line 7 |
| category c299; |
| #line 7 |
| category c300; |
| #line 7 |
| category c301; |
| #line 7 |
| category c302; |
| #line 7 |
| category c303; |
| #line 7 |
| category c304; |
| #line 7 |
| category c305; |
| #line 7 |
| category c306; |
| #line 7 |
| category c307; |
| #line 7 |
| category c308; |
| #line 7 |
| category c309; |
| #line 7 |
| category c310; |
| #line 7 |
| category c311; |
| #line 7 |
| category c312; |
| #line 7 |
| category c313; |
| #line 7 |
| category c314; |
| #line 7 |
| category c315; |
| #line 7 |
| category c316; |
| #line 7 |
| category c317; |
| #line 7 |
| category c318; |
| #line 7 |
| category c319; |
| #line 7 |
| category c320; |
| #line 7 |
| category c321; |
| #line 7 |
| category c322; |
| #line 7 |
| category c323; |
| #line 7 |
| category c324; |
| #line 7 |
| category c325; |
| #line 7 |
| category c326; |
| #line 7 |
| category c327; |
| #line 7 |
| category c328; |
| #line 7 |
| category c329; |
| #line 7 |
| category c330; |
| #line 7 |
| category c331; |
| #line 7 |
| category c332; |
| #line 7 |
| category c333; |
| #line 7 |
| category c334; |
| #line 7 |
| category c335; |
| #line 7 |
| category c336; |
| #line 7 |
| category c337; |
| #line 7 |
| category c338; |
| #line 7 |
| category c339; |
| #line 7 |
| category c340; |
| #line 7 |
| category c341; |
| #line 7 |
| category c342; |
| #line 7 |
| category c343; |
| #line 7 |
| category c344; |
| #line 7 |
| category c345; |
| #line 7 |
| category c346; |
| #line 7 |
| category c347; |
| #line 7 |
| category c348; |
| #line 7 |
| category c349; |
| #line 7 |
| category c350; |
| #line 7 |
| category c351; |
| #line 7 |
| category c352; |
| #line 7 |
| category c353; |
| #line 7 |
| category c354; |
| #line 7 |
| category c355; |
| #line 7 |
| category c356; |
| #line 7 |
| category c357; |
| #line 7 |
| category c358; |
| #line 7 |
| category c359; |
| #line 7 |
| category c360; |
| #line 7 |
| category c361; |
| #line 7 |
| category c362; |
| #line 7 |
| category c363; |
| #line 7 |
| category c364; |
| #line 7 |
| category c365; |
| #line 7 |
| category c366; |
| #line 7 |
| category c367; |
| #line 7 |
| category c368; |
| #line 7 |
| category c369; |
| #line 7 |
| category c370; |
| #line 7 |
| category c371; |
| #line 7 |
| category c372; |
| #line 7 |
| category c373; |
| #line 7 |
| category c374; |
| #line 7 |
| category c375; |
| #line 7 |
| category c376; |
| #line 7 |
| category c377; |
| #line 7 |
| category c378; |
| #line 7 |
| category c379; |
| #line 7 |
| category c380; |
| #line 7 |
| category c381; |
| #line 7 |
| category c382; |
| #line 7 |
| category c383; |
| #line 7 |
| category c384; |
| #line 7 |
| category c385; |
| #line 7 |
| category c386; |
| #line 7 |
| category c387; |
| #line 7 |
| category c388; |
| #line 7 |
| category c389; |
| #line 7 |
| category c390; |
| #line 7 |
| category c391; |
| #line 7 |
| category c392; |
| #line 7 |
| category c393; |
| #line 7 |
| category c394; |
| #line 7 |
| category c395; |
| #line 7 |
| category c396; |
| #line 7 |
| category c397; |
| #line 7 |
| category c398; |
| #line 7 |
| category c399; |
| #line 7 |
| category c400; |
| #line 7 |
| category c401; |
| #line 7 |
| category c402; |
| #line 7 |
| category c403; |
| #line 7 |
| category c404; |
| #line 7 |
| category c405; |
| #line 7 |
| category c406; |
| #line 7 |
| category c407; |
| #line 7 |
| category c408; |
| #line 7 |
| category c409; |
| #line 7 |
| category c410; |
| #line 7 |
| category c411; |
| #line 7 |
| category c412; |
| #line 7 |
| category c413; |
| #line 7 |
| category c414; |
| #line 7 |
| category c415; |
| #line 7 |
| category c416; |
| #line 7 |
| category c417; |
| #line 7 |
| category c418; |
| #line 7 |
| category c419; |
| #line 7 |
| category c420; |
| #line 7 |
| category c421; |
| #line 7 |
| category c422; |
| #line 7 |
| category c423; |
| #line 7 |
| category c424; |
| #line 7 |
| category c425; |
| #line 7 |
| category c426; |
| #line 7 |
| category c427; |
| #line 7 |
| category c428; |
| #line 7 |
| category c429; |
| #line 7 |
| category c430; |
| #line 7 |
| category c431; |
| #line 7 |
| category c432; |
| #line 7 |
| category c433; |
| #line 7 |
| category c434; |
| #line 7 |
| category c435; |
| #line 7 |
| category c436; |
| #line 7 |
| category c437; |
| #line 7 |
| category c438; |
| #line 7 |
| category c439; |
| #line 7 |
| category c440; |
| #line 7 |
| category c441; |
| #line 7 |
| category c442; |
| #line 7 |
| category c443; |
| #line 7 |
| category c444; |
| #line 7 |
| category c445; |
| #line 7 |
| category c446; |
| #line 7 |
| category c447; |
| #line 7 |
| category c448; |
| #line 7 |
| category c449; |
| #line 7 |
| category c450; |
| #line 7 |
| category c451; |
| #line 7 |
| category c452; |
| #line 7 |
| category c453; |
| #line 7 |
| category c454; |
| #line 7 |
| category c455; |
| #line 7 |
| category c456; |
| #line 7 |
| category c457; |
| #line 7 |
| category c458; |
| #line 7 |
| category c459; |
| #line 7 |
| category c460; |
| #line 7 |
| category c461; |
| #line 7 |
| category c462; |
| #line 7 |
| category c463; |
| #line 7 |
| category c464; |
| #line 7 |
| category c465; |
| #line 7 |
| category c466; |
| #line 7 |
| category c467; |
| #line 7 |
| category c468; |
| #line 7 |
| category c469; |
| #line 7 |
| category c470; |
| #line 7 |
| category c471; |
| #line 7 |
| category c472; |
| #line 7 |
| category c473; |
| #line 7 |
| category c474; |
| #line 7 |
| category c475; |
| #line 7 |
| category c476; |
| #line 7 |
| category c477; |
| #line 7 |
| category c478; |
| #line 7 |
| category c479; |
| #line 7 |
| category c480; |
| #line 7 |
| category c481; |
| #line 7 |
| category c482; |
| #line 7 |
| category c483; |
| #line 7 |
| category c484; |
| #line 7 |
| category c485; |
| #line 7 |
| category c486; |
| #line 7 |
| category c487; |
| #line 7 |
| category c488; |
| #line 7 |
| category c489; |
| #line 7 |
| category c490; |
| #line 7 |
| category c491; |
| #line 7 |
| category c492; |
| #line 7 |
| category c493; |
| #line 7 |
| category c494; |
| #line 7 |
| category c495; |
| #line 7 |
| category c496; |
| #line 7 |
| category c497; |
| #line 7 |
| category c498; |
| #line 7 |
| category c499; |
| #line 7 |
| category c500; |
| #line 7 |
| category c501; |
| #line 7 |
| category c502; |
| #line 7 |
| category c503; |
| #line 7 |
| category c504; |
| #line 7 |
| category c505; |
| #line 7 |
| category c506; |
| #line 7 |
| category c507; |
| #line 7 |
| category c508; |
| #line 7 |
| category c509; |
| #line 7 |
| category c510; |
| #line 7 |
| category c511; |
| #line 7 |
| category c512; |
| #line 7 |
| category c513; |
| #line 7 |
| category c514; |
| #line 7 |
| category c515; |
| #line 7 |
| category c516; |
| #line 7 |
| category c517; |
| #line 7 |
| category c518; |
| #line 7 |
| category c519; |
| #line 7 |
| category c520; |
| #line 7 |
| category c521; |
| #line 7 |
| category c522; |
| #line 7 |
| category c523; |
| #line 7 |
| category c524; |
| #line 7 |
| category c525; |
| #line 7 |
| category c526; |
| #line 7 |
| category c527; |
| #line 7 |
| category c528; |
| #line 7 |
| category c529; |
| #line 7 |
| category c530; |
| #line 7 |
| category c531; |
| #line 7 |
| category c532; |
| #line 7 |
| category c533; |
| #line 7 |
| category c534; |
| #line 7 |
| category c535; |
| #line 7 |
| category c536; |
| #line 7 |
| category c537; |
| #line 7 |
| category c538; |
| #line 7 |
| category c539; |
| #line 7 |
| category c540; |
| #line 7 |
| category c541; |
| #line 7 |
| category c542; |
| #line 7 |
| category c543; |
| #line 7 |
| category c544; |
| #line 7 |
| category c545; |
| #line 7 |
| category c546; |
| #line 7 |
| category c547; |
| #line 7 |
| category c548; |
| #line 7 |
| category c549; |
| #line 7 |
| category c550; |
| #line 7 |
| category c551; |
| #line 7 |
| category c552; |
| #line 7 |
| category c553; |
| #line 7 |
| category c554; |
| #line 7 |
| category c555; |
| #line 7 |
| category c556; |
| #line 7 |
| category c557; |
| #line 7 |
| category c558; |
| #line 7 |
| category c559; |
| #line 7 |
| category c560; |
| #line 7 |
| category c561; |
| #line 7 |
| category c562; |
| #line 7 |
| category c563; |
| #line 7 |
| category c564; |
| #line 7 |
| category c565; |
| #line 7 |
| category c566; |
| #line 7 |
| category c567; |
| #line 7 |
| category c568; |
| #line 7 |
| category c569; |
| #line 7 |
| category c570; |
| #line 7 |
| category c571; |
| #line 7 |
| category c572; |
| #line 7 |
| category c573; |
| #line 7 |
| category c574; |
| #line 7 |
| category c575; |
| #line 7 |
| category c576; |
| #line 7 |
| category c577; |
| #line 7 |
| category c578; |
| #line 7 |
| category c579; |
| #line 7 |
| category c580; |
| #line 7 |
| category c581; |
| #line 7 |
| category c582; |
| #line 7 |
| category c583; |
| #line 7 |
| category c584; |
| #line 7 |
| category c585; |
| #line 7 |
| category c586; |
| #line 7 |
| category c587; |
| #line 7 |
| category c588; |
| #line 7 |
| category c589; |
| #line 7 |
| category c590; |
| #line 7 |
| category c591; |
| #line 7 |
| category c592; |
| #line 7 |
| category c593; |
| #line 7 |
| category c594; |
| #line 7 |
| category c595; |
| #line 7 |
| category c596; |
| #line 7 |
| category c597; |
| #line 7 |
| category c598; |
| #line 7 |
| category c599; |
| #line 7 |
| category c600; |
| #line 7 |
| category c601; |
| #line 7 |
| category c602; |
| #line 7 |
| category c603; |
| #line 7 |
| category c604; |
| #line 7 |
| category c605; |
| #line 7 |
| category c606; |
| #line 7 |
| category c607; |
| #line 7 |
| category c608; |
| #line 7 |
| category c609; |
| #line 7 |
| category c610; |
| #line 7 |
| category c611; |
| #line 7 |
| category c612; |
| #line 7 |
| category c613; |
| #line 7 |
| category c614; |
| #line 7 |
| category c615; |
| #line 7 |
| category c616; |
| #line 7 |
| category c617; |
| #line 7 |
| category c618; |
| #line 7 |
| category c619; |
| #line 7 |
| category c620; |
| #line 7 |
| category c621; |
| #line 7 |
| category c622; |
| #line 7 |
| category c623; |
| #line 7 |
| category c624; |
| #line 7 |
| category c625; |
| #line 7 |
| category c626; |
| #line 7 |
| category c627; |
| #line 7 |
| category c628; |
| #line 7 |
| category c629; |
| #line 7 |
| category c630; |
| #line 7 |
| category c631; |
| #line 7 |
| category c632; |
| #line 7 |
| category c633; |
| #line 7 |
| category c634; |
| #line 7 |
| category c635; |
| #line 7 |
| category c636; |
| #line 7 |
| category c637; |
| #line 7 |
| category c638; |
| #line 7 |
| category c639; |
| #line 7 |
| category c640; |
| #line 7 |
| category c641; |
| #line 7 |
| category c642; |
| #line 7 |
| category c643; |
| #line 7 |
| category c644; |
| #line 7 |
| category c645; |
| #line 7 |
| category c646; |
| #line 7 |
| category c647; |
| #line 7 |
| category c648; |
| #line 7 |
| category c649; |
| #line 7 |
| category c650; |
| #line 7 |
| category c651; |
| #line 7 |
| category c652; |
| #line 7 |
| category c653; |
| #line 7 |
| category c654; |
| #line 7 |
| category c655; |
| #line 7 |
| category c656; |
| #line 7 |
| category c657; |
| #line 7 |
| category c658; |
| #line 7 |
| category c659; |
| #line 7 |
| category c660; |
| #line 7 |
| category c661; |
| #line 7 |
| category c662; |
| #line 7 |
| category c663; |
| #line 7 |
| category c664; |
| #line 7 |
| category c665; |
| #line 7 |
| category c666; |
| #line 7 |
| category c667; |
| #line 7 |
| category c668; |
| #line 7 |
| category c669; |
| #line 7 |
| category c670; |
| #line 7 |
| category c671; |
| #line 7 |
| category c672; |
| #line 7 |
| category c673; |
| #line 7 |
| category c674; |
| #line 7 |
| category c675; |
| #line 7 |
| category c676; |
| #line 7 |
| category c677; |
| #line 7 |
| category c678; |
| #line 7 |
| category c679; |
| #line 7 |
| category c680; |
| #line 7 |
| category c681; |
| #line 7 |
| category c682; |
| #line 7 |
| category c683; |
| #line 7 |
| category c684; |
| #line 7 |
| category c685; |
| #line 7 |
| category c686; |
| #line 7 |
| category c687; |
| #line 7 |
| category c688; |
| #line 7 |
| category c689; |
| #line 7 |
| category c690; |
| #line 7 |
| category c691; |
| #line 7 |
| category c692; |
| #line 7 |
| category c693; |
| #line 7 |
| category c694; |
| #line 7 |
| category c695; |
| #line 7 |
| category c696; |
| #line 7 |
| category c697; |
| #line 7 |
| category c698; |
| #line 7 |
| category c699; |
| #line 7 |
| category c700; |
| #line 7 |
| category c701; |
| #line 7 |
| category c702; |
| #line 7 |
| category c703; |
| #line 7 |
| category c704; |
| #line 7 |
| category c705; |
| #line 7 |
| category c706; |
| #line 7 |
| category c707; |
| #line 7 |
| category c708; |
| #line 7 |
| category c709; |
| #line 7 |
| category c710; |
| #line 7 |
| category c711; |
| #line 7 |
| category c712; |
| #line 7 |
| category c713; |
| #line 7 |
| category c714; |
| #line 7 |
| category c715; |
| #line 7 |
| category c716; |
| #line 7 |
| category c717; |
| #line 7 |
| category c718; |
| #line 7 |
| category c719; |
| #line 7 |
| category c720; |
| #line 7 |
| category c721; |
| #line 7 |
| category c722; |
| #line 7 |
| category c723; |
| #line 7 |
| category c724; |
| #line 7 |
| category c725; |
| #line 7 |
| category c726; |
| #line 7 |
| category c727; |
| #line 7 |
| category c728; |
| #line 7 |
| category c729; |
| #line 7 |
| category c730; |
| #line 7 |
| category c731; |
| #line 7 |
| category c732; |
| #line 7 |
| category c733; |
| #line 7 |
| category c734; |
| #line 7 |
| category c735; |
| #line 7 |
| category c736; |
| #line 7 |
| category c737; |
| #line 7 |
| category c738; |
| #line 7 |
| category c739; |
| #line 7 |
| category c740; |
| #line 7 |
| category c741; |
| #line 7 |
| category c742; |
| #line 7 |
| category c743; |
| #line 7 |
| category c744; |
| #line 7 |
| category c745; |
| #line 7 |
| category c746; |
| #line 7 |
| category c747; |
| #line 7 |
| category c748; |
| #line 7 |
| category c749; |
| #line 7 |
| category c750; |
| #line 7 |
| category c751; |
| #line 7 |
| category c752; |
| #line 7 |
| category c753; |
| #line 7 |
| category c754; |
| #line 7 |
| category c755; |
| #line 7 |
| category c756; |
| #line 7 |
| category c757; |
| #line 7 |
| category c758; |
| #line 7 |
| category c759; |
| #line 7 |
| category c760; |
| #line 7 |
| category c761; |
| #line 7 |
| category c762; |
| #line 7 |
| category c763; |
| #line 7 |
| category c764; |
| #line 7 |
| category c765; |
| #line 7 |
| category c766; |
| #line 7 |
| category c767; |
| #line 7 |
| category c768; |
| #line 7 |
| category c769; |
| #line 7 |
| category c770; |
| #line 7 |
| category c771; |
| #line 7 |
| category c772; |
| #line 7 |
| category c773; |
| #line 7 |
| category c774; |
| #line 7 |
| category c775; |
| #line 7 |
| category c776; |
| #line 7 |
| category c777; |
| #line 7 |
| category c778; |
| #line 7 |
| category c779; |
| #line 7 |
| category c780; |
| #line 7 |
| category c781; |
| #line 7 |
| category c782; |
| #line 7 |
| category c783; |
| #line 7 |
| category c784; |
| #line 7 |
| category c785; |
| #line 7 |
| category c786; |
| #line 7 |
| category c787; |
| #line 7 |
| category c788; |
| #line 7 |
| category c789; |
| #line 7 |
| category c790; |
| #line 7 |
| category c791; |
| #line 7 |
| category c792; |
| #line 7 |
| category c793; |
| #line 7 |
| category c794; |
| #line 7 |
| category c795; |
| #line 7 |
| category c796; |
| #line 7 |
| category c797; |
| #line 7 |
| category c798; |
| #line 7 |
| category c799; |
| #line 7 |
| category c800; |
| #line 7 |
| category c801; |
| #line 7 |
| category c802; |
| #line 7 |
| category c803; |
| #line 7 |
| category c804; |
| #line 7 |
| category c805; |
| #line 7 |
| category c806; |
| #line 7 |
| category c807; |
| #line 7 |
| category c808; |
| #line 7 |
| category c809; |
| #line 7 |
| category c810; |
| #line 7 |
| category c811; |
| #line 7 |
| category c812; |
| #line 7 |
| category c813; |
| #line 7 |
| category c814; |
| #line 7 |
| category c815; |
| #line 7 |
| category c816; |
| #line 7 |
| category c817; |
| #line 7 |
| category c818; |
| #line 7 |
| category c819; |
| #line 7 |
| category c820; |
| #line 7 |
| category c821; |
| #line 7 |
| category c822; |
| #line 7 |
| category c823; |
| #line 7 |
| category c824; |
| #line 7 |
| category c825; |
| #line 7 |
| category c826; |
| #line 7 |
| category c827; |
| #line 7 |
| category c828; |
| #line 7 |
| category c829; |
| #line 7 |
| category c830; |
| #line 7 |
| category c831; |
| #line 7 |
| category c832; |
| #line 7 |
| category c833; |
| #line 7 |
| category c834; |
| #line 7 |
| category c835; |
| #line 7 |
| category c836; |
| #line 7 |
| category c837; |
| #line 7 |
| category c838; |
| #line 7 |
| category c839; |
| #line 7 |
| category c840; |
| #line 7 |
| category c841; |
| #line 7 |
| category c842; |
| #line 7 |
| category c843; |
| #line 7 |
| category c844; |
| #line 7 |
| category c845; |
| #line 7 |
| category c846; |
| #line 7 |
| category c847; |
| #line 7 |
| category c848; |
| #line 7 |
| category c849; |
| #line 7 |
| category c850; |
| #line 7 |
| category c851; |
| #line 7 |
| category c852; |
| #line 7 |
| category c853; |
| #line 7 |
| category c854; |
| #line 7 |
| category c855; |
| #line 7 |
| category c856; |
| #line 7 |
| category c857; |
| #line 7 |
| category c858; |
| #line 7 |
| category c859; |
| #line 7 |
| category c860; |
| #line 7 |
| category c861; |
| #line 7 |
| category c862; |
| #line 7 |
| category c863; |
| #line 7 |
| category c864; |
| #line 7 |
| category c865; |
| #line 7 |
| category c866; |
| #line 7 |
| category c867; |
| #line 7 |
| category c868; |
| #line 7 |
| category c869; |
| #line 7 |
| category c870; |
| #line 7 |
| category c871; |
| #line 7 |
| category c872; |
| #line 7 |
| category c873; |
| #line 7 |
| category c874; |
| #line 7 |
| category c875; |
| #line 7 |
| category c876; |
| #line 7 |
| category c877; |
| #line 7 |
| category c878; |
| #line 7 |
| category c879; |
| #line 7 |
| category c880; |
| #line 7 |
| category c881; |
| #line 7 |
| category c882; |
| #line 7 |
| category c883; |
| #line 7 |
| category c884; |
| #line 7 |
| category c885; |
| #line 7 |
| category c886; |
| #line 7 |
| category c887; |
| #line 7 |
| category c888; |
| #line 7 |
| category c889; |
| #line 7 |
| category c890; |
| #line 7 |
| category c891; |
| #line 7 |
| category c892; |
| #line 7 |
| category c893; |
| #line 7 |
| category c894; |
| #line 7 |
| category c895; |
| #line 7 |
| category c896; |
| #line 7 |
| category c897; |
| #line 7 |
| category c898; |
| #line 7 |
| category c899; |
| #line 7 |
| category c900; |
| #line 7 |
| category c901; |
| #line 7 |
| category c902; |
| #line 7 |
| category c903; |
| #line 7 |
| category c904; |
| #line 7 |
| category c905; |
| #line 7 |
| category c906; |
| #line 7 |
| category c907; |
| #line 7 |
| category c908; |
| #line 7 |
| category c909; |
| #line 7 |
| category c910; |
| #line 7 |
| category c911; |
| #line 7 |
| category c912; |
| #line 7 |
| category c913; |
| #line 7 |
| category c914; |
| #line 7 |
| category c915; |
| #line 7 |
| category c916; |
| #line 7 |
| category c917; |
| #line 7 |
| category c918; |
| #line 7 |
| category c919; |
| #line 7 |
| category c920; |
| #line 7 |
| category c921; |
| #line 7 |
| category c922; |
| #line 7 |
| category c923; |
| #line 7 |
| category c924; |
| #line 7 |
| category c925; |
| #line 7 |
| category c926; |
| #line 7 |
| category c927; |
| #line 7 |
| category c928; |
| #line 7 |
| category c929; |
| #line 7 |
| category c930; |
| #line 7 |
| category c931; |
| #line 7 |
| category c932; |
| #line 7 |
| category c933; |
| #line 7 |
| category c934; |
| #line 7 |
| category c935; |
| #line 7 |
| category c936; |
| #line 7 |
| category c937; |
| #line 7 |
| category c938; |
| #line 7 |
| category c939; |
| #line 7 |
| category c940; |
| #line 7 |
| category c941; |
| #line 7 |
| category c942; |
| #line 7 |
| category c943; |
| #line 7 |
| category c944; |
| #line 7 |
| category c945; |
| #line 7 |
| category c946; |
| #line 7 |
| category c947; |
| #line 7 |
| category c948; |
| #line 7 |
| category c949; |
| #line 7 |
| category c950; |
| #line 7 |
| category c951; |
| #line 7 |
| category c952; |
| #line 7 |
| category c953; |
| #line 7 |
| category c954; |
| #line 7 |
| category c955; |
| #line 7 |
| category c956; |
| #line 7 |
| category c957; |
| #line 7 |
| category c958; |
| #line 7 |
| category c959; |
| #line 7 |
| category c960; |
| #line 7 |
| category c961; |
| #line 7 |
| category c962; |
| #line 7 |
| category c963; |
| #line 7 |
| category c964; |
| #line 7 |
| category c965; |
| #line 7 |
| category c966; |
| #line 7 |
| category c967; |
| #line 7 |
| category c968; |
| #line 7 |
| category c969; |
| #line 7 |
| category c970; |
| #line 7 |
| category c971; |
| #line 7 |
| category c972; |
| #line 7 |
| category c973; |
| #line 7 |
| category c974; |
| #line 7 |
| category c975; |
| #line 7 |
| category c976; |
| #line 7 |
| category c977; |
| #line 7 |
| category c978; |
| #line 7 |
| category c979; |
| #line 7 |
| category c980; |
| #line 7 |
| category c981; |
| #line 7 |
| category c982; |
| #line 7 |
| category c983; |
| #line 7 |
| category c984; |
| #line 7 |
| category c985; |
| #line 7 |
| category c986; |
| #line 7 |
| category c987; |
| #line 7 |
| category c988; |
| #line 7 |
| category c989; |
| #line 7 |
| category c990; |
| #line 7 |
| category c991; |
| #line 7 |
| category c992; |
| #line 7 |
| category c993; |
| #line 7 |
| category c994; |
| #line 7 |
| category c995; |
| #line 7 |
| category c996; |
| #line 7 |
| category c997; |
| #line 7 |
| category c998; |
| #line 7 |
| category c999; |
| #line 7 |
| category c1000; |
| #line 7 |
| category c1001; |
| #line 7 |
| category c1002; |
| #line 7 |
| category c1003; |
| #line 7 |
| category c1004; |
| #line 7 |
| category c1005; |
| #line 7 |
| category c1006; |
| #line 7 |
| category c1007; |
| #line 7 |
| category c1008; |
| #line 7 |
| category c1009; |
| #line 7 |
| category c1010; |
| #line 7 |
| category c1011; |
| #line 7 |
| category c1012; |
| #line 7 |
| category c1013; |
| #line 7 |
| category c1014; |
| #line 7 |
| category c1015; |
| #line 7 |
| category c1016; |
| #line 7 |
| category c1017; |
| #line 7 |
| category c1018; |
| #line 7 |
| category c1019; |
| #line 7 |
| category c1020; |
| #line 7 |
| category c1021; |
| #line 7 |
| category c1022; |
| #line 7 |
| category c1023; |
| #line 7 |
| |
| |
| # Generate level definitions for each sensitivity and category. |
| level s0:c0.c1023; |
| #line 10 |
| |
| ###################################### |
| # Attribute declarations |
| # |
| |
| # All types used for processes. |
| attribute domain; |
| |
| # Domains that are allowed all permissions ("unconfined"). |
| attribute unconfineddomain; |
| |
| # All domains used for apps. |
| attribute appdomain; |
| |
| # All types used for files that can exist on a labeled fs. |
| # Do not use for pseudo file types. |
| attribute file_type; |
| |
| # All types used for domain entry points. |
| attribute exec_type; |
| |
| #line 1 "external/sepolicy/bluetooth.te" |
| # bluetooth subsystem |
| type bluetooth, domain; |
| permissive bluetooth; |
| |
| #line 4 |
| typeattribute bluetooth appdomain; |
| |
| #line 5 |
| typeattribute bluetooth unconfineddomain; |
| #line 5 |
| |
| #line 1 "external/sepolicy/healthd.te" |
| # healthd seclabel is specified in init.rc since |
| # it lives in the rootfs and has no unique file type. |
| type healthd, domain; |
| permissive healthd; |
| type healthd_exec, exec_type, file_type; |
| |
| # New domain is entered by executing the file. |
| #line 7 |
| allow healthd healthd_exec:file { entrypoint read execute }; |
| |
| ### |
| ### Neverallow rules |
| ### |
| ### These are things that Android apps should NEVER be able to do |
| ### |
| |
| # Superuser capabilities. |
| # bluetooth requires net_admin. |
| neverallow { appdomain -unconfineddomain -bluetooth } self:capability *; |
| |
| # Added to make the neverallow rule make sense in a limited environment. |
| # Added at the bottom to not throw off file seek numbers in test suite. |
| # This is not a problem, because allow rules are processed after all types |
| # are gathered. |
| type testTYPE, appdomain, domain; |
| |
| # added rules for further testing (display full range of needed functionality) |
| allow unconfineddomain {fs_type dev_type file_type}:{ chr_file file } ~{entrypoint relabelto}; |
| |
| allow init {fs_type dev_type file_type}:{ dir { { chr_file blk_file } { file lnk_file sock_file fifo_file } } } relabelto; |
| |
| neverallow { appdomain -unconfineddomain } { |
| audio_device |
| camera_device |
| dm_device |
| radio_device |
| gps_device |
| rpmsg_device |
| }:chr_file { read write }; |