This file is indexed.

/usr/share/selinux/ubuntu/include/apps/rssh.if is in selinux-policy-ubuntu-dev 0.2.20091117-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
## <summary>Restricted (scp/sftp) only shell</summary>

########################################
## <summary>
##	Role access for rssh
## </summary>
## <param name="role">
##	<summary>
##	Role allowed access
##	</summary>
## </param>
## <param name="domain">
##	<summary>
##	User domain for the role
##	</summary>
## </param>
#
interface(`rssh_role',`
	gen_require(`
		type rssh_t;
	')

	role $1 types rssh_t;

	# allow ps to show irc
	ps_process_pattern($2, rssh_t)
	allow $2 rssh_t:process signal;
')

########################################
## <summary>
##	Transition to all user rssh domains.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`rssh_spec_domtrans',`
	gen_require(`
		type rssh_t, rssh_exec_t;
	')

	spec_domtrans_pattern($1, rssh_exec_t, rssh_t)
')

########################################
## <summary>
##	Read all users rssh read-only content.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`rssh_read_ro_content',`
	gen_require(`
		type rssh_ro_t;
	')

	allow $1 rssh_ro_t:dir list_dir_perms;
	read_files_pattern($1, rssh_ro_t, rssh_ro_t)
	read_lnk_files_pattern($1, rssh_ro_t, rssh_ro_t)
')