制限されたユーザーから起動すると tlog-rec がエラーで失敗する
Issue
-
tlog-rec
を実行していくつかのコマンドを記録しようとしたときに、ユーザーが制限を受けていると (例:staff_u
)、次のエラーが表示されますが、AVC は記録されず、コマンドは実行されません。[staff@vm-rhel8 ~]$ id -Z staff_u:staff_r:staff_t:s0-s0:c0.c1023 [staff@vm-rhel8 ~]$ tlog-rec -o log.out echo hello Locale charset is ANSI_X3.4-1968 (ASCII) Assuming locale environment is lost and charset is UTF-8 Failed adding a utmp record Success Failed removing utmp record Failed setting up the I/O tap
上記では、エラーメッセージが表示され、「hello」が表示されていないことがわかります。これは、コマンドがまったく実行されなかったことを示しています。
Environment
- Red Hat Enterprise Linux 8 および 9
- tlog-rec
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.