Research Menu

.
Skip Search Box

SELinux Mailing List

Re: user_trans/user_trans_boolean macro

From: Ivan Gyurdiev <ivg2_at_cornell.edu>
Date: Mon, 14 Mar 2005 13:13:39 -0500


Ok, how about this instead - seems more useful

  1. Renamed: user_trans -> allow_trans
  2. Added role as a separate argument for flexibility
  3. Remove boolean macro - declare boolean in the app .te file

#####################################################
#
# allow_trans(prefix, role_prefix, app_prefix)
#
# Transition user:$2_r:$1_t to user:$2_r:$1_$3_t
#

define(`allow_trans', `
role $2_r types $1_$3_t;
if (! disable_$1_$3_transition) {
domain_auto_trans($1_t, $3_exec_t, $1_$3_t) }
')

-- 
Ivan Gyurdiev <ivg2@cornell.edu>
Cornell University


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Mon 14 Mar 2005 - 13:14:40 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service