2008-04-29 13:58:34 +00:00
|
|
|
## <summary>Generic unprivileged user role</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Change to the generic user role.
|
|
|
|
## </summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="role">
|
2008-04-29 13:58:34 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role allowed access.
|
2008-04-29 13:58:34 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`unprivuser_role_change',`
|
|
|
|
gen_require(`
|
|
|
|
role user_r;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 user_r;
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Change from the generic user role.
|
|
|
|
## </summary>
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Change from the generic user role to
|
|
|
|
## the specified role.
|
|
|
|
## </p>
|
|
|
|
## <p>
|
2008-11-05 16:10:46 +00:00
|
|
|
## This is an interface to support third party modules
|
2008-04-29 13:58:34 +00:00
|
|
|
## and its use is not allowed in upstream reference
|
|
|
|
## policy.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="role">
|
2008-04-29 13:58:34 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role allowed access.
|
2008-04-29 13:58:34 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`unprivuser_role_change_to',`
|
2008-04-29 13:58:34 +00:00
|
|
|
gen_require(`
|
2008-11-05 16:10:46 +00:00
|
|
|
role user_r;
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
allow user_r $1;
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|