From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@vger.kernel.org
Cc: Topi Miettinen <toiwoton@gmail.com>
Subject: Re: [PATCH v3] secilc/docs: fix use of TMPDIR
Date: Fri, 15 May 2020 15:35:40 +0200 [thread overview]
Message-ID: <20200515133540.GD255621@workstation> (raw)
In-Reply-To: <20200515114111.11428-1-toiwoton@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]
On Fri, May 15, 2020 at 02:41:11PM +0300, Topi Miettinen wrote:
> Environment variable TMPDIR may be already set for the user building
> and this could be equal to $XDG_RUNTIME_DIR or /tmp which are existing
> directories. Then when running 'make clean', there are unintended side
> effects:
>
> rm -rf /run/user/1000
> rm: cannot remove '/run/user/1000/dconf/user': Permission denied
> rm: cannot remove '/run/user/1000/systemd': Permission denied
> rm: cannot remove '/run/user/1000/gnupg': Permission denied
> rm: cannot remove '/run/user/1000/dbus-1': Is a directory
> rm: cannot remove '/run/user/1000/inaccessible': Permission denied
> make[1]: *** [Makefile:68: clean] Error 1
>
> Fix by always setting the variable.
>
> Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
> Suggested-by: Petr Lautrbach <plautrba@redhat.com>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
Thanks!
> ---
> secilc/docs/Makefile | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/secilc/docs/Makefile b/secilc/docs/Makefile
> index 6b07ce7f..197ccef2 100644
> --- a/secilc/docs/Makefile
> +++ b/secilc/docs/Makefile
> @@ -1,8 +1,8 @@
> -CWD ?= $(shell pwd)
> -HTMLDIR ?= $(CWD)/html
> -PDFDIR ?= $(CWD)/pdf
> -TMPDIR ?= $(CWD)/tmp
> -TESTDIR ?= $(CWD)/../test
> +CWD = $(shell pwd)
> +HTMLDIR = $(CWD)/html
> +PDFDIR = $(CWD)/pdf
> +TMPDIR = $(CWD)/tmp
> +TESTDIR = $(CWD)/../test
>
> # All the markdown files that make up the guide:
> FILE_LIST ?= cil_introduction.md \
> --
> 2.26.2
>
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-05-15 13:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 11:41 [PATCH v3] secilc/docs: fix use of TMPDIR Topi Miettinen
2020-05-15 13:35 ` Petr Lautrbach [this message]
2020-05-29 13:03 ` Stephen Smalley
2020-06-01 8:43 ` Petr Lautrbach
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=20200515133540.GD255621@workstation \
--to=plautrba@redhat.com \
--cc=selinux@vger.kernel.org \
--cc=toiwoton@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