-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe8833a
commit 830966c
Showing
15 changed files
with
440 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# homed file context | ||
# | ||
|
||
/run/systemd/home/(.+)\.dont-suspend -p gen_context(system_u:object_r:systemd_homed_runtime_pipe_t,s0) | ||
/run/systemd/home/notify -s gen_context(system_u:object_r:systemd_homed_runtime_socket_t,s0) | ||
/run/systemd/home -d gen_context(system_u:object_r:systemd_homed_runtime_dir_t,s0) | ||
/run/systemd/user-home-mount -d gen_context(system_u:object_r:systemd_homed_runtime_work_dir_t,s0) | ||
|
||
/usr/lib/systemd/systemd-homed -- gen_context(system_u:object_r:systemd_homed_exec_t,s0) | ||
/usr/lib/systemd/systemd-homework -- gen_context(system_u:object_r:systemd_homework_exec_t,s0) | ||
/usr/lib/systemd/system/systemd-homed-activate\.service -- gen_context(system_u:object_r:systemd_homed_unit_file_t,s0) | ||
/usr/lib/systemd/system/systemd-homed\.service -- gen_context(system_u:object_r:systemd_homed_unit_file_t,s0) | ||
|
||
/var/lib/systemd/home/(.+)\.identity -- gen_context(system_u:object_r:systemd_homed_record_t,s0) | ||
/var/lib/systemd/home/local\.private -- gen_context(system_u:object_r:systemd_homed_record_t,s0) | ||
/var/lib/systemd/home/(.+)\.public -- gen_context(system_u:object_r:systemd_homed_record_t,s0) | ||
/var/lib/systemd/home/local\.public -- gen_context(system_u:object_r:systemd_homed_record_t,s0) | ||
/var/lib/systemd/home -d gen_context(system_u:object_r:systemd_homed_library_dir_t,s0) | ||
|
||
HOME_DIR/\.identity -- gen_context(system_u:object_r:systemd_homed_record_t,s0) | ||
HOME_ROOT/(.+)\.home -- gen_context(system_u:object_r:systemd_homed_crypto_luks_t,s0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
## <summary>SELinux policy for systemd-homed components</summary> | ||
|
||
######################################## | ||
## <summary> | ||
## Send and receive messages from | ||
## systemd homed over dbus. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`systemd_homed_dbus_chat',` | ||
gen_require(` | ||
type systemd_homed_t; | ||
class dbus send_msg; | ||
') | ||
|
||
allow $1 systemd_homed_t:dbus send_msg; | ||
allow systemd_homed_t $1:dbus send_msg; | ||
') | ||
|
||
######################################## | ||
## <summary> | ||
## Allow the specified domain to connect to | ||
## systemd homed with a unix socket. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`systemd_homed_stream_connect',` | ||
gen_require(` | ||
type systemd_homed_t; | ||
') | ||
|
||
allow $1 systemd_homed_t:unix_stream_socket connectto; | ||
') | ||
|
||
####################################### | ||
## <summary> | ||
## Write to systemd_homed PID socket files. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`systemd_homed_write_pid_sock_files',` | ||
gen_require(` | ||
type systemd_homed_runtime_dir_t; | ||
type systemd_homed_runtime_socket_t; | ||
') | ||
|
||
write_sock_files_pattern($1, systemd_homed_runtime_dir_t, systemd_homed_runtime_socket_t) | ||
') | ||
|
||
###################################### | ||
## <summary> | ||
## Write systemd homed pipes. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`systemd_homed_write_pipes',` | ||
gen_require(` | ||
type systemd_homed_runtime_dir_t; | ||
type systemd_homed_runtime_pipe_t; | ||
') | ||
|
||
write_fifo_files_pattern($1, systemd_homed_runtime_dir_t, systemd_homed_runtime_pipe_t) | ||
') | ||
|
Oops, something went wrong.