From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] quota_remount_test01: update to new API
Date: Fri, 29 Jan 2021 15:37:19 +0100 [thread overview]
Message-ID: <YBQdn3S9sPJT/wea@pevik> (raw)
In-Reply-To: <20210128171052.6025-1-kory.maincent@bootlin.com>
Hi Li, Jan,
> + # some distros (CentOS 6.x, for example) doesn't permit creating
> + # of quota files in a directory with SELinux file_t type
Could you please check if this is still relevant?
If yes, would be enough to detect this case with tst_selinux_enabled
(from tst_security.sh)? I.e. considering only SELinux in enforce mode
(detecting with /sys/fs/selinux/enforce or /selinux/enforce).
> + if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
> + chcon -t tmp_t $MNTDIR || tst_brk TFAIL "Could not change SELinux file type"
> + tst_res TINFO "Successfully changed SELinux file type"
> + fi
Kind regards,
Petr
next prev parent reply other threads:[~2021-01-29 14:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 17:10 [LTP] [PATCH] quota_remount_test01: update to new API Kory Maincent
2021-01-29 14:37 ` Petr Vorel [this message]
2021-02-05 11:00 ` Petr Vorel
2021-01-29 15:22 ` Petr Vorel
2021-01-29 15:51 ` =?unknown-8bit?q?K=C3=B6ry?= Maincent
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=YBQdn3S9sPJT/wea@pevik \
--to=pvorel@suse.cz \
--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 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.