a04723f92bfd82f213a8895028ed84c917af902a
Linux/SELinux.md
| ... | ... | @@ -282,6 +282,11 @@ sub sortInBracket |
| 282 | 282 | ```
|
| 283 | 283 | # find . -name "*.cgi" -or -name "*.pl" | xargs chcon -v -t httpd_sys_script_exec_t
|
| 284 | 284 | ```
|
| 285 | +- サービス設定ファイル
|
|
| 286 | + ```
|
|
| 287 | + # chcon -t systemd_unit_file_t /usr/lib/systemd/system/your-service.service
|
|
| 288 | + # chcon -t systemd_unit_file_t /usr/lib/systemd/system/your-service.timer
|
|
| 289 | + ```
|
|
| 285 | 290 | - シンボリックリンクに対してコンテキストの変更を行うと、デフォルトではリンク先のコンテキストが変更される。
|
| 286 | 291 | シンボリックリンク自体のコンテキストを変更するには「--no-dereference」を指定する。
|
| 287 | 292 | ```
|