2done.org

Linuxメインなメモ書き。二度寝してから書く。(ご意見は Twitter あたりで。そのうちコメント欄つけます。)

cron からの sar 失敗

2010/12/14

 

良くわからないので確認中の事象

 

パッケージ

 

# sestatus

SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          error (Success)
Policy version:                 24
Policy from config file:        targeted

Process contexts:
Current context:                unconfined_u:unconfined_r:unconfined_t:SystemLow-SystemHigh
Init context:                   system_u:system_r:init_t:SystemLow
/sbin/mingetty                  system_u:system_r:getty_t:SystemLow
/usr/sbin/sshd                  system_u:system_r:sshd_t:SystemLow-SystemHigh

File contexts:
Controlling term:               unconfined_u:object_r:user_tty_device_t:SystemLow
/etc/passwd                     system_u:object_r:etc_t:SystemLow
/etc/shadow                     system_u:object_r:shadow_t:SystemLow
/bin/bash                       system_u:object_r:shell_exec_t:SystemLow
/bin/login                      system_u:object_r:login_exec_t:SystemLow
/bin/sh                         system_u:object_r:bin_t:SystemLow -> system_u:object_r:shell_exec_t:SystemLow
/sbin/agetty                    system_u:object_r:getty_exec_t:SystemLow
/sbin/init                      system_u:object_r:bin_t:SystemLow -> system_u:object_r:init_exec_t:SystemLow
/sbin/mingetty                  system_u:object_r:getty_exec_t:SystemLow
/usr/sbin/sshd                  system_u:object_r:sshd_exec_t:SystemLow

 

mcstransd が on の時の/var/log/cron

Dec 14 18:10:01 angler CROND[18318]: (root) CMD (/usr/lib64/sa/sa1 -S DISK 1 1)
Dec 14 18:20:01 angler CROND[18350]: (root) CMD (/usr/lib64/sa/sa1 -S DISK 1 1)

 

mcstransd が off の時の/var/log/cron

Dec 14 18:00:01 angler crond[18247]: (*system*) ERROR (Could not set exec or keycreate context to system_u:system_r:system_cronjob_t:SystemLow-SystemHigh for user)
Dec 14 18:00:01 angler crond[18247]: (root) ERROR (failed to change SELinux context)
Dec 14 18:01:01 angler crond[18261]: (*system*) ERROR (Could not set exec or keycreate context to system_u:system_r:system_cronjob_t:SystemLow-SystemHigh for user)
Dec 14 18:01:01 angler crond[18261]: (root) ERROR (failed to change SELinux context)


Dec 14 18:30:01 angler crond[18380]: (*system*) ERROR (Could not set exec or keycreate context to system_u:system_r:system_cronjob_t:SystemLow-SystemHigh for user)
Dec 14 18:30:01 angler crond[18380]: (root) ERROR (failed to change SELinux context)