All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, serge@hallyn.com, jburke@redhat.com
Subject: Re: [selinux-testsuite][PATCH] use extfs ioctls only when running on ext[234]
Date: Wed, 23 Jan 2013 11:50:02 -0500 (EST)	[thread overview]
Message-ID: <2101640213.3126557.1358959802946.JavaMail.root@redhat.com> (raw)
In-Reply-To: <510004B2.5020703@tycho.nsa.gov>



----- Original Message -----
> From: "Stephen Smalley" <sds@tycho.nsa.gov>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: selinux@tycho.nsa.gov, serge@hallyn.com, jburke@redhat.com
> Sent: Wednesday, 23 January, 2013 4:41:38 PM
> Subject: Re: [selinux-testsuite][PATCH] use extfs ioctls only when running on ext[234]
> 
> On 01/23/2013 08:27 AM, Jan Stancek wrote:
> > EXT2_* ioctls are likely to fail on other filesystems,
> > for example: xfs.
> >
> > Signed-off-by: Jan Stancek <jstancek@redhat.com>
> > ---
> >   tests/ioctl/Makefile       |    6 ++++++
> >   tests/ioctl/test_ioctl.c   |    2 ++
> >   tests/ioctl/test_noioctl.c |    2 ++
> >   3 files changed, 10 insertions(+), 0 deletions(-)
> 
> Shouldn't really be a compile-time flag but rather a runtime test of
> the
> filesystem type, right?  Otherwise it presumes you built it on the
> same
> system and in the same filesystem where you will run it.

Correct, I assumed everyone is running it with 'make test'.

> 
> I thought however that your earlier patch to switch it to using
> FS_IOC_
> command values would have
> addressed the issue of other filesystem types already?  What error
> are
> you getting from xfs?

ioctl(3, FS_IOC32_SETVERSION or FS_IOC_SETVERSION or SONYPI_IOCGBAT1CAP, 0x7fffb5eeac24) = -1 ENOTTY (Inappropriate ioctl for device)

> The code already checks for one errno value to
> distinguish the not-supported case.

I can't see any check for errno in this test:
$ grep "errno" -r tests/ioctl/
$

Regards,
Jan

--
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:[~2013-01-23 16:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 13:27 [selinux-testsuite][PATCH] use extfs ioctls only when running on ext[234] Jan Stancek
2013-01-23 15:41 ` Stephen Smalley
2013-01-23 16:50   ` Jan Stancek [this message]
2013-01-23 17:51     ` Stephen Smalley
2013-01-23 18:15       ` Jan Stancek
2013-01-23 18:31         ` Stephen Smalley
2013-01-24  4:36       ` Serge E. Hallyn
2013-01-24 15:54         ` Stephen Smalley

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=2101640213.3126557.1358959802946.JavaMail.root@redhat.com \
    --to=jstancek@redhat.com \
    --cc=jburke@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=serge@hallyn.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.