From: petre rodan <kaiowas@gentoo.org>
To: jwcart2@epoch.ncsc.mil
Cc: SELinux <selinux@tycho.nsa.gov>
Subject: Re: gentoo policies for daemontools, ucspi-tcp, publicfile, djbdns, clockspeed
Date: Thu, 30 Dec 2004 00:13:29 +0200 [thread overview]
Message-ID: <41D32C09.9020409@gentoo.org> (raw)
In-Reply-To: <1103139082.31218.29.camel@moss-lions.epoch.ncsc.mil>
[-- Attachment #1.1: Type: text/plain, Size: 207 bytes --]
James Carter wrote:
> Do others use these tools?
>
> Petre, you didn't include the publicfile policy, would you please send
> it to the list.
oops, sorry, here it is =)
Happy Holidays To Everyone!
peter
[-- Attachment #1.2: publicfile.fc --]
[-- Type: text/plain, Size: 314 bytes --]
/usr/bin/ftpd -- system_u:object_r:publicfile_exec_t
/usr/bin/httpd -- system_u:object_r:publicfile_exec_t
/usr/bin/publicfile-conf -- system_u:object_r:publicfile_exec_t
# this is the place where online content located
# set this to suit your needs
#/var/www(/.*)? system_u:object_r:publicfile_content_t
[-- Attachment #1.3: publicfile.te --]
[-- Type: text/plain, Size: 931 bytes --]
#DESC Publicfile - HTTP and FTP file services
# http://cr.yp.to/publicfile.html
#
# Author: petre rodan <kaiowas@gentoo.org>
#
# this policy depends on ucspi-tcp
#
ifdef(`ftpd.te', `
', `
type ftp_port_t, port_type, reserved_port_type;
type ftp_data_port_t, port_type, reserved_port_type;
')
ifdef(`apache.te', `
', `
type http_port_t, port_type, reserved_port_type;
')
daemon_domain(publicfile)
type publicfile_content_t, file_type, sysadmfile;
domain_auto_trans(initrc_t, publicfile_exec_t, publicfile_t)
ifdef(`ucspi-tcp.te', `
domain_auto_trans(utcpserver_t, publicfile_exec_t, publicfile_t)
allow publicfile_t utcpserver_t:tcp_socket { read write };
allow utcpserver_t { ftp_data_port_t ftp_port_t http_port_t }:tcp_socket name_bind;
')
allow publicfile_t initrc_t:tcp_socket { read write };
allow publicfile_t self:capability { dac_override setgid setuid sys_chroot };
r_dir_file(publicfile_t, publicfile_content_t)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2004-12-29 20:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-21 11:34 gentoo policies for daemontools, ucspi-tcp, publicfile, djbdns, clockspeed petre rodan
2004-12-15 19:31 ` James Carter
2004-12-29 22:13 ` petre rodan [this message]
2005-03-15 18:02 ` James Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41D32C09.9020409@gentoo.org \
--to=kaiowas@gentoo.org \
--cc=jwcart2@epoch.ncsc.mil \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.