From: Tanel Kokk <tanel.kokk@seb.ee>
To: SELinux@tycho.nsa.gov
Subject: Re: Sendmail & SELinux policies, again
Date: Wed, 12 Apr 2006 15:52:18 +0300 [thread overview]
Message-ID: <443CF802.1090802@seb.ee> (raw)
In-Reply-To: <1144845820.20422.84.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> If you just want to allow sendmail_t to receive from any port, then you
> can just use:
> allow sendmail_t port_type:tcp_socket { recv_msg };
OK.
>
> port_type is then expanded to the set of all types that have the
> "port_type" attribute listed, either in their type declaration (ala type
> foo_t, port_type;) or in a separate typeattribute declaration (ala
> typeattribute foo_t port_type;). All port types should have that
> attribute.
>
> I think that the example sendmail policy does allow send_msg and
> recv_msg to all port types (via the can_network macro).
>
Can I just add such macro to my policy?
can_network(sendmail_t)
Where I can get example sendmail policies? CentOS doesn'n have these
ones for sendmail.
--
Tanel Kokk
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2006-04-12 12:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 8:03 Sendmail & SELinux policies, again Tanel Kokk
2006-04-12 12:43 ` Stephen Smalley
2006-04-12 12:52 ` Tanel Kokk [this message]
2006-04-12 13:16 ` Christopher J. PeBenito
2006-04-12 13:23 ` Stephen Smalley
2006-04-12 13:45 ` Tanel Kokk
2006-04-12 14:10 ` Stephen Smalley
2006-04-12 14:09 ` Tanel Kokk
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=443CF802.1090802@seb.ee \
--to=tanel.kokk@seb.ee \
--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.