aboutsummaryrefslogtreecommitdiff
blob: a9ce68e3390d1aa61b69146bbf546ec049b59155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
## <summary>Rshd, rlogind, and telnetd.</summary>

########################################
## <summary>
##	Domain transition to the remote login domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`remotelogin_domtrans',`
	gen_require(`
		type remote_login_t;
	')

	corecmd_search_bin($1)
	auth_domtrans_login_program($1, remote_login_t)
')

########################################
## <summary>
##	Send generic signals to remote login.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`remotelogin_signal',`
	gen_require(`
		type remote_login_t;
	')

	allow $1 remote_login_t:process signal;
')

########################################
## <summary>
##	Create, read, write, and delete
##	remote login temporary content.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`remotelogin_manage_tmp_content',`
	gen_require(`
		type remote_login_tmp_t;
	')

	files_search_tmp($1)
	allow $1 remote_login_tmp_t:dir manage_dir_perms;
	allow $1 remote_login_tmp_t:file manage_file_perms;
')

########################################
## <summary>
##	Relabel remote login temporary content.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`remotelogin_relabel_tmp_content',`
	gen_require(`
		type remote_login_tmp_t;
	')

	files_search_tmp($1)
	allow $1 remote_login_tmp_t:dir relabel_dir_perms;
	allow $1 remote_login_tmp_t:file relabel_file_perms;
')