Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2003 11:06:46 -0800 (PST)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 24619 for review
Message-ID:  <200302031906.h13J6kwf014917@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24619

Change 24619 by green@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302031906.h13J6kwf014917>