From owner-p4-projects Mon Feb 3 11: 6:51 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E5DC837B405; Mon, 3 Feb 2003 11:06:47 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9538337B401 for ; Mon, 3 Feb 2003 11:06:47 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 252B043F3F for ; Mon, 3 Feb 2003 11:06:47 -0800 (PST) (envelope-from green@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h13J6kbv014920 for ; Mon, 3 Feb 2003 11:06:46 -0800 (PST) (envelope-from green@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h13J6kwf014917 for perforce@freebsd.org; Mon, 3 Feb 2003 11:06:46 -0800 (PST) Date: Mon, 3 Feb 2003 11:06:46 -0800 (PST) Message-Id: <200302031906.h13J6kwf014917@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to green@freebsd.org using -f From: Brian Feldman Subject: PERFORCE change 24619 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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