From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] mount08.c: Check EACCES error when test under selinux enabled in enforce mode
Date: Thu, 31 Jul 2025 12:54:56 +0200 [thread overview]
Message-ID: <20250731105456.GA36365@pevik> (raw)
In-Reply-To: <31e3752c-e500-48b5-8e22-7ba581162fc8@suse.com>
Hi Andrea, Wei,
> We are not 100% sure that SELinux will be configured to block the access to
> mount. We should probably consider both of them only when SELinux is
> enabled, otherwise ENOENT only.
Good point. Lets' use TST_EXP_FAIL_ARR with ENOENT or ENOENT and EACCES.
Wei, please make a comment in source code, why EACCES is not enough for SELinux.
Thanks!
Kind regards,
Petr
> - Andrea
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-07-31 10:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-28 21:27 [LTP] [PATCH v1] mount08.c: SKIP test if selinux is running Wei Gao via ltp
2025-07-28 10:04 ` Cyril Hrubis
2025-07-28 10:31 ` Petr Vorel
2025-07-31 14:33 ` [LTP] [PATCH v2] mount08.c: Check EACCES error when test under selinux enabled in enforce mode Wei Gao via ltp
2025-07-31 4:39 ` Petr Vorel
2025-07-31 6:44 ` Andrea Cervesato via ltp
2025-07-31 10:54 ` Petr Vorel [this message]
2025-08-01 0:28 ` [LTP] [PATCH v3] " Wei Gao via ltp
2025-07-31 17:09 ` Andrea Cervesato via ltp
2025-07-31 17:13 ` Andrea Cervesato via ltp
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=20250731105456.GA36365@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.com \
--cc=ltp@lists.linux.it \
/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