File: oslogin.te

package info (click to toggle)
google-compute-image-packages 20190124-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,344 kB
  • sloc: python: 6,338; sh: 1,748; cpp: 1,535; ansic: 404; makefile: 160
file content (24 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

module oslogin 1.0;


require {
	attribute file_type;
	attribute non_security_file_type;
	type http_port_t;
	type sshd_t;
	class tcp_socket name_connect;
	class file { create getattr setattr write open unlink };
	class dir { search write remove_name add_name };
}

#============= types ==============

type google_t;  # defined in oslogin.fc
typeattribute google_t file_type, non_security_file_type;

#============= sshd_t ==============

allow sshd_t google_t:file { create getattr setattr write open unlink };
allow sshd_t google_t:dir { search write remove_name add_name };
allow sshd_t http_port_t:tcp_socket name_connect;