All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Dominick Grift <domg472@gmail.com>
Cc: Bill Chimiak <wch1m1@gmail.com>,
	selinux-mailing-list <selinux@tycho.nsa.gov>
Subject: Re: fwknop, fwknopd,  fwknop_serv
Date: Fri, 01 Apr 2011 13:09:17 -0400	[thread overview]
Message-ID: <4D9606BD.20009@redhat.com> (raw)
In-Reply-To: <4D95FEDF.9010907@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/01/2011 12:35 PM, Dominick Grift wrote:
> On 04/01/2011 06:10 PM, Bill Chimiak wrote:
>> fwknop is a single passphrase authorization system.
>> Fairly cool.  selinux did not like fwknop out of the box.
>> It wanted a new module:
> 
>> module iptab2log 1.0;
> 
>> require {
>>         type var_log_t;
>>         type iptables_t;
>>         class file write;
>> }
> 
>> #============= iptables_t ==============
>> allow iptables_t var_log_t:file write;
> 
> Did you notice any loss of functionality?
> 
> This may be a leaked file descriptor or something may be passing the
> open file to iptables.
> 
> You may be able to dontaudited this:
> 
> dontaudit iptables_t var_log_t:file write;
> 
> Which file exactly is it trying to write to?
> 
> By the way this is not the optimal list to be posting this to.
> 
>> It works now.  Was there another way to do this?
>> William J. Chimiak
>> Laboratory for Telecommunication Sciences 
>> 8080 Greenmead Drive,  College Park, MD 20740
>> 301-422-5217
> 
>> --
>> 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.
> 

- --
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.



Most likely a redirection of stdout.

script > /var/log/my.log

Would cause this type of AVC for any confined app being run within the
script.

A hacky way to get out of it without changing policy, would be to execute
script | cat > /var/log/my.log

Another option would be to set it up from append

script >> /var/log/my.log

Which would only require append privs.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk2WBr0ACgkQrlYvE4MpobO1HQCfac3GdEWkNtvRP2PeXQqXftVC
jqgAnR9Sd4iIj7/WoLoZULPUwo6pXhWJ
=FTQ8
-----END PGP SIGNATURE-----

--
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.

      reply	other threads:[~2011-04-01 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01 16:10 fwknop, fwknopd, fwknop_serv Bill Chimiak
2011-04-01 16:35 ` Dominick Grift
2011-04-01 17:09   ` Daniel J Walsh [this message]

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=4D9606BD.20009@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=domg472@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=wch1m1@gmail.com \
    /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.