리눅스 종료시의 로그를 저장할 수 있을까요?
http://kldp.org/node/93102
위 글의 연장선에서 질문입니다.
NTFS-3G 를 SELinux 가 활성화 된 상태에서 사용하려면 정책을 추가해주어야 하는데...정책을 수동으로 만들기는 상당히 어려운듯 하고.
결국은 audit 로그를 분석해 정책으로 만들어주는 audit2allow 를 이용해야 하느데요.
문제는 부팅시의 메시지는 로그에 남지만, 종료시에 생기는 메지시는 로그에 안남는것 같습니다. 화면상에는 분명히 있는데..로그 파일에서는 찾아볼 수 가 없습니다.
http://forum.linux-ntfs.org/viewtopic.php?t=522
이 글에서 같은 증상의 로그를 찾았습니다.
I was having the same issue. However just running the above command did not solve all of the SELinux permission problems that I was having. One such error was the "umount" errors during shutdown. After several reboots and adding additional audits to an audit policy file, I found the following input for "audit2allow" solved my problems.
I am also running Fedora Core 6 on an x68-64 machine.
Nov 21 21:07:13 holmes kernel: audit(1164164800.071:4): avc: denied { execute_no_trans } for pid=1886 comm="mount.ntfs-3g" name="fusermount" dev=sda3 ino=65948669 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:mount_exec_t:s0 tclass=file
Nov 21 20:59:24 holmes kernel: audit(1164164341.697:6): avc: denied { read write } for pid=2564 comm="fusermount" name="fuse" dev=tmpfs ino=1820 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=chr_file
Nov 21 21:12:35 holmes kernel: audit(1164165122.057:4): avc: denied { mount } for pid=1882 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Nov 21 21:12:35 holmes kernel: audit(1164165122.058:5): avc: denied { unmount } for pid=1892 comm="umount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
제가 보기에도 umount 명령에 대한 정책이 없어서 생기는 에러같은데요. 관련된 정책 작업을 하신분이나 종료시에 생기는 메시지도 로그에 기록하는 방법이 있는지요?
댓글 달기