RAppArmor (version 2.0.2)

aa_change_profile: Change profiles

Description

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.

Usage

aa_change_profile(profile, verbose = TRUE)

Arguments

profile

character string with the name of the profile.

verbose

print some C output (TRUE/FALSE)

References

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.

See Also

Other apparmor: aa_change_hat, aa_find_mountpoint, aa_is_enabled

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
test <- read.table("/etc/passwd");
aa_change_profile("testprofile");
aa_getcon();
test <- read.table("/etc/passwd");
# }

Run the code above in your browser using DataLab