Commit 730db176 authored by John Johansen's avatar John Johansen
Browse files

policy: tag policy with the AppArmor 3.0 abi

Tag profiles and abstractions with abi information.

Tagging abstractions is not strictly necessary but allows the parser
to detect when their is a mismatch and that policy will need an
update for abi.

We do not currently tag the tunables because variable declarations
are not currently affected by abi.

MR: !491


Signed-off-by: default avatarJohn Johansen <[email protected]>
Acked-by: default avatarSteve Beattie <[email protected]>
parent 162da1ba
Loading
Loading
Loading
Loading
+78 −0
Original line number Diff line number Diff line
query {label {multi_transaction {yes
}
data {yes
}
perms {allow deny audit quiet
}
}
}
dbus {mask {acquire send receive
}
}
signal {mask {hup int quit ill trap abrt bus fpe kill usr1 segv usr2 pipe alrm term stkflt chld cont stop stp ttin ttou urg xcpu xfsz vtalrm prof winch io pwr sys emt lost
}
}
ptrace {mask {read trace
}
}
caps {mask {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 mac_override mac_admin syslog wake_alarm block_suspend audit_read
}
}
rlimit {mask {cpu fsize data stack core rss nproc nofile memlock as locks sigpending msgqueue nice rtprio rttime
}
}
capability {0xffffff
}
namespaces {pivot_root {no
}
profile {yes
}
}
mount {mask {mount umount pivot_root
}
}
network {af_unix {yes
}
af_mask {unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp
}
}
network_v8 {af_mask {unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp
}
}
file {mask {create read write exec append mmap_exec link lock
}
}
domain {version {1.2
}
attach_conditions {xattr {yes
}
}
computed_longest_left {yes
}
post_nnp_subset {yes
}
fix_binfmt_elf_mmap {yes
}
stack {yes
}
change_profile {yes
}
change_onexec {yes
}
change_hatv {yes
}
change_hat {yes
}
}
policy {set_load {yes
}
versions {v8 {yes
}
v7 {yes
}
v6 {yes
}
v5 {yes
}
}
}
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
#
# ------------------------------------------------------------------

  abi <abi/3.0>,

  #include <abstractions/dri-common>


+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@

# This file contains basic permissions for Apache and every vHost

  abi <abi/3.0>,

  #include <abstractions/nameservice>

  # Allow unconfined processes to send us signals by default
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
#
# ------------------------------------------------------------------

abi <abi/3.0>,

#include <abstractions/apparmor_api/introspect>

@{PROC}/@{tid}/attr/{current,exec} w,
+2 −0
Original line number Diff line number Diff line
@@ -9,4 +9,6 @@
# Make sure to include at least tunables/proc and tunables/kernelvars
# when using this abstraction, if not tunables/global.

abi <abi/3.0>,

@{PROC}/@{pids}/attr/{current,prev,exec} r,
Loading