| aa_change_profile {RAppArmor} | R Documentation |
This function changes the current R process to an AppArmor profile. Note that this generally is a one way process: most profiles explicitly prevent switching into another profile, otherwise it would defeat the purpose.
aa_change_profile(profile, verbose = TRUE)
profile |
character string with the name of the profile. |
verbose |
print some C output (TRUE/FALSE) |
Jeroen Ooms (2013). The RAppArmor Package: Enforcing Security Policies in R Using Dynamic Sandboxing on Linux. Journal of Statistical Software, 55(7), 1-34. http://www.jstatsoft.org/v55/i07/.
Ubuntu Manpage: aa_change_profile - change a tasks profile. http://manpages.ubuntu.com/manpages/precise/man2/aa_change_profile.2.html.
Other apparmor: aa_change_hat,
aa_find_mountpoint,
aa_is_enabled
## Not run:
test <- read.table("/etc/passwd");
aa_change_profile("testprofile");
aa_getcon();
test <- read.table("/etc/passwd");
## End(Not run)