From: Paul Moore <paul@paul-moore.com>
To: "Christian Göttsche" <cgoettsche@seltendoof.de>, selinux@vger.kernel.org
Cc: "Christian Göttsche" <cgzones@googlemail.com>,
"Stephen Smalley" <stephen.smalley.work@gmail.com>,
"Ondrej Mosnacek" <omosnace@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] selinux: constify source policy in cond_policydb_dup()
Date: Tue, 30 Apr 2024 18:55:09 -0400 [thread overview]
Message-ID: <6a578214df994a783c067644c62aa443@paul-moore.com> (raw)
In-Reply-To: <20240405161042.260113-2-cgoettsche@seltendoof.de>
On Apr 5, 2024 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgoettsche@seltendoof.de> wrote:
>
> cond_policydb_dup() duplicates conditional parts of an existing policy.
> Declare the source policy const, since it should not be modified.
>
> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
> ---
> security/selinux/ss/conditional.c | 12 ++++++------
> security/selinux/ss/conditional.h | 2 +-
> security/selinux/ss/hashtab.c | 9 +++++----
> security/selinux/ss/hashtab.h | 4 ++--
> 4 files changed, 14 insertions(+), 13 deletions(-)
I had to do some line length fixups, but otherwise this looked good
to me, merged into selinux/dev. Thanks!
--
paul-moore.com
prev parent reply other threads:[~2024-04-30 22:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 16:10 [PATCH 2/2] selinux: add support for xperms in conditional policies Christian Göttsche
2024-04-05 16:10 ` [PATCH 1/2] selinux: constify source policy in cond_policydb_dup() Christian Göttsche
2024-04-30 22:55 ` Paul Moore [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=6a578214df994a783c067644c62aa443@paul-moore.com \
--to=paul@paul-moore.com \
--cc=cgoettsche@seltendoof.de \
--cc=cgzones@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=omosnace@redhat.com \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).