SELinux-Refpolicy Archive on lore.kernel.org
 help / color / Atom feed
From: Alexander Miroshnichenko <alex@millerson.name>
To: Chris PeBenito <pebenito@ieee.org>
Cc: <selinux-refpolicy@vger.kernel.org>
Subject: Re: [PATCH] add lldpd policy
Date: Mon, 17 Jun 2019 15:23:31 +0300
Message-ID: <8c6b7209-7b55-49ab-a151-655f6b76169d@millerson.name> (raw)
In-Reply-To: <749388e0-6da1-4b06-c62c-35302a5aba78@ieee.org>

>> +lldp_cli_domtrans(lldpd_t)
>
> The daemon runs the cli tool?

Yes.

>> +init_dontaudit_use_script_ptys(lldp_cli_t)
>
> This should not be necessary, as this is allowed via init_system_domain().

Without this rule I have such denies:
type=AVC msg=audit(1560772835.304:520336): avc:  denied  { read write } for 
 pid=20384 comm="lldpcli" path="/dev/pts/2" dev="devpts" ino=5 
scontext=system_u:system_r:lldp_cli_t:s0 
tcontext=system_u:object_r:initrc_devpts_t:s0 tclass=chr_file permissive=0
type=AVC msg=audit(1560773162.058:520386): avc:  denied  { read write } for 
 pid=20583 comm="lldpcli" path="/dev/pts/2" dev="devpts" ino=5 
scontext=system_u:system_r:lldp_cli_t:s0 
tcontext=system_u:object_r:initrc_devpts_t:s0 tclass=chr_file permissive=0
It can be safely omitted.

--
Alexander Miroshnichenko

  parent reply index

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-10 14:20 Alexander Miroshnichenko
2019-06-15 16:08 ` Chris PeBenito
2019-06-15 17:58   ` Dominick Grift
2019-06-15 19:24     ` Chris PeBenito
2019-06-15 19:43       ` Dominick Grift
2019-06-17 12:23   ` Alexander Miroshnichenko [this message]
2019-06-17 12:42   ` [PATCH v2] Add " Alexander Miroshnichenko
2019-06-24  1:15     ` Chris PeBenito

Reply instructions:

You may reply publically 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=8c6b7209-7b55-49ab-a151-655f6b76169d@millerson.name \
    --to=alex@millerson.name \
    --cc=pebenito@ieee.org \
    --cc=selinux-refpolicy@vger.kernel.org \
    /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

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org selinux-refpolicy@archiver.kernel.org
	public-inbox-index selinux-refpolicy


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/ public-inbox