PERFORCE change 24619 for review

Brian Feldman green at freebsd.org
Mon Feb 3 19:06:46 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=24619

Change 24619 by green at green_laptop_2 on 2003/02/03 11:06:39

	Add most of the policy for at, atrun, and friends.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/domains/program/at.te#1 add
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/domains/program/atrun.te#2 edit
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/file_contexts/program/atrun.fc#2 edit
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/files.lst#3 edit
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/macros/program/at_macros.te#1 add
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/macros/user_macros.te#2 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/domains/program/atrun.te#2 (text+ko) ====

@@ -26,9 +26,9 @@
 allow atrun_t var_at_t:dir rw_dir_perms;
 allow atrun_t var_at_t:file create_file_perms;
 
-# Jobs output to /var/at/jobs, and are read from /var/at/spool
+# Jobs output to /var/at/spool, and are read from /var/at/jobs
 type var_at_jobs_t, file_type, sysadmfile;
 type var_at_spool_t, file_type, sysadmfile;
 allow atrun_t { var_at_jobs_t var_at_spool_t }:dir rw_dir_perms;
-allow atrun_t var_at_jobs_t:file create;
-allow atrun_t var_at_spool_t:file { r_file_perms unlink };
+allow atrun_t var_at_jobs_t:file { r_file_perms unlink };
+allow atrun_t var_at_spool_t:file create_file_perms;

==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/file_contexts/program/atrun.fc#2 (text+ko) ====

@@ -1,5 +1,6 @@
-# atd
+# atrun and friends
 /usr/libexec/atrun		system_u:object_r:atrun_exec_t
+/usr/bin/(at|atq|atrm|batch)	system_u:object_r:at_exec_t
 /var/at(/.*)?			system_u:object_r:var_at_t
 /var/at/jobs(/.*)?		system_u:object_r:var_at_jobs_t
 /var/at/spool(/.*)?		system_u:object_r:var_at_spool_t

==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/files.lst#3 (text+ko) ====

@@ -8,6 +8,7 @@
 types/security.te
 macros
 macros/program
+macros/program/at_macros.te
 macros/program/xserver_macros.te
 macros/program/crontab_macros.te
 macros/program/gpg_macros.te
@@ -139,6 +140,7 @@
 domains/program/apache.te
 domains/program/apmd.te
 domains/program/atd.te
+domains/program/at.te
 domains/program/atrun.te
 domains/program/authbind.te
 domains/program/automount.te

==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/macros/user_macros.te#2 (text+ko) ====

@@ -91,6 +91,7 @@
 ifdef(`xserver_macros.te', `xserver_domain($1)')
 ifdef(`lpr.te', `lpr_domain($1)')
 mail_domain($1)
+ifdef(`at.te', `at_domain($1)')
 ifdef(`crontab.te', `crontab_domain($1)')
 ifdef(`sshd.te', `ssh_domain($1)')
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list