newrole
Run a new shell with a different SELinux role. tldr-pages
On Linux
Linux
Run a new shell with a different SELinux role. Allows users to switch to a different SELinux security context.
Start a new shell with a specific SELinux role
newrole --role role_nameIdentifyStart a new shell with a specific SELinux type
newrole --type type_nameIdentifyStart a new shell with a specific SELinux level (format: s0-s0:c0.c1023 where levels range from s0 to s15, - indicates level range, categories start with c, : separates level from categories, . indicates category range)
newrole --level s0-s0:c0.c1023IdentifyDisplay the current SELinux context
id --contextIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Start a new shell with both role and type
newrole --role role_name --type type_nameIdentify