Subversion リポジトリの参照
Diff of /branches/ccs-patch/security/ccsecurity/policy_io.c
Parent Directory
| Revision Log
| Patch
2145 |
* @fmt: The printf()'s format string, followed by parameters. |
* @fmt: The printf()'s format string, followed by parameters. |
2146 |
* |
* |
2147 |
* Returns 0 if the supervisor decided to permit the access request which |
* Returns 0 if the supervisor decided to permit the access request which |
2148 |
* violated the policy in enforcing mode, 1 if the supervisor decided to |
* violated the policy in enforcing mode, CCS_RETRY_REQUEST if the supervisor |
2149 |
* retry the access request which violated the policy in enforcing mode, |
* decided to retry the access request which violated the policy in enforcing |
2150 |
* 0 if it is not in enforcing mode, -EPERM otherwise. |
* mode, 0 if it is not in enforcing mode, -EPERM otherwise. |
2151 |
*/ |
*/ |
2152 |
int ccs_supervisor(struct ccs_request_info *r, const char *fmt, ...) |
int ccs_supervisor(struct ccs_request_info *r, const char *fmt, ...) |
2153 |
{ |
{ |
2256 |
spin_unlock(&ccs_query_list_lock); |
spin_unlock(&ccs_query_list_lock); |
2257 |
switch (ccs_query_entry->answer) { |
switch (ccs_query_entry->answer) { |
2258 |
case 3: /* Asked to retry by administrator. */ |
case 3: /* Asked to retry by administrator. */ |
2259 |
error = 1; |
error = CCS_RETRY_REQUEST; |
2260 |
r->retry++; |
r->retry++; |
2261 |
break; |
break; |
2262 |
case 1: |
case 1: |
|
Legend:
Removed from v.3484 |
|
changed lines |
|
Added in v.3494 |
|
|
| |