Subversion リポジトリの参照
Diff of /trunk/1.8.x/ccs-patch/security/ccsecurity/policy_io.c
Parent Directory
| Revision Log
| Patch
480 |
int index; |
int index; |
481 |
if (head->read_eof) |
if (head->read_eof) |
482 |
return; |
return; |
483 |
|
if (head->read_bit) |
484 |
|
goto body; |
485 |
ccs_io_printf(head, "PROFILE_VERSION=%s\n", "20090827"); |
ccs_io_printf(head, "PROFILE_VERSION=%s\n", "20090827"); |
486 |
#ifdef CONFIG_CCSECURITY_AUDIT |
#ifdef CONFIG_CCSECURITY_AUDIT |
487 |
ccs_io_printf(head, "PREFERENCE::audit={ max_grant_log=%u " |
ccs_io_printf(head, "PREFERENCE::audit={ max_grant_log=%u " |
503 |
"}\n", |
"}\n", |
504 |
ccs_yesno(ccs_default_profile.preference.enforcing_verbose), |
ccs_yesno(ccs_default_profile.preference.enforcing_verbose), |
505 |
ccs_default_profile.preference.enforcing_penalty); |
ccs_default_profile.preference.enforcing_penalty); |
506 |
|
head->read_bit = 1; |
507 |
|
body: |
508 |
for (index = head->read_step; index < CCS_MAX_PROFILES; index++) { |
for (index = head->read_step; index < CCS_MAX_PROFILES; index++) { |
509 |
bool done; |
bool done; |
510 |
u8 config; |
u8 config; |
511 |
int i; |
int i; |
512 |
int pos = head->read_avail; |
int pos; |
513 |
const struct ccs_profile *profile = ccs_profile_ptr[index]; |
const struct ccs_profile *profile = ccs_profile_ptr[index]; |
514 |
head->read_step = index; |
head->read_step = index; |
515 |
if (!profile) |
if (!profile) |
516 |
continue; |
continue; |
517 |
|
pos = head->read_avail; |
518 |
spin_lock(&ccs_profile_comment_lock); |
spin_lock(&ccs_profile_comment_lock); |
519 |
done = ccs_io_printf(head, "%u-COMMENT=%s\n", index, |
done = ccs_io_printf(head, "%u-COMMENT=%s\n", index, |
520 |
profile->comment ? profile->comment->name |
profile->comment ? profile->comment->name |
|
Legend:
Removed from v.2963 |
|
changed lines |
|
Added in v.2965 |
|
|
| |