All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: selinux@vger.kernel.org
Cc: Richard Haines <richard_c_haines@btinternet.com>
Subject: [PATCH testsuite 1/2] policy/test_ioctl_xperms.te: add ioctl numbers for other arches
Date: Thu, 21 Apr 2022 10:17:19 +0200	[thread overview]
Message-ID: <20220421081720.744534-2-omosnace@redhat.com> (raw)
In-Reply-To: <20220421081720.744534-1-omosnace@redhat.com>

The FIOQSIZE ioctl numbers differ across arches. Add missing numbers to
cover all arches currently supported by the Linux kernel.

Fixes: b11701a55614 ("tests/ioctl: switch to FIOQSIZE")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 policy/test_ioctl_xperms.te | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/policy/test_ioctl_xperms.te b/policy/test_ioctl_xperms.te
index 5f570c3..1071bb9 100644
--- a/policy/test_ioctl_xperms.te
+++ b/policy/test_ioctl_xperms.te
@@ -1,4 +1,5 @@
-define(`FIOQSIZE', `{ 0x00005460 }')
+# include FIOQSIZE ioctl numbers through all arches
+define(`FIOQSIZE', `{ 0x545E 0x5460 0x667f 0x6680 }')
 
 # Domain for process that is allowed the required ioctl xperms.
 type test_ioctl_xperm_t;
-- 
2.35.1


  reply	other threads:[~2022-04-21  8:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-21  8:17 [PATCH testsuite 0/2] FIOQSIZE followup fixes Ondrej Mosnacek
2022-04-21  8:17 ` Ondrej Mosnacek [this message]
2022-04-21  8:17 ` [PATCH testsuite 2/2] tests/ioctl: adjust size of variable passed to ioctl(2) Ondrej Mosnacek
2022-04-22  7:48 ` [PATCH testsuite 0/2] FIOQSIZE followup fixes Ondrej Mosnacek

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=20220421081720.744534-2-omosnace@redhat.com \
    --to=omosnace@redhat.com \
    --cc=richard_c_haines@btinternet.com \
    --cc=selinux@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
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.