public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/49697] New: read permission of LTO intermediate files
@ 2011-07-10 17:20 Joost.VandeVondele at pci dot uzh.ch
  2011-07-11  9:26 ` [Bug lto/49697] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2011-07-10 17:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49697

           Summary: read permission of LTO intermediate files
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@pci.uzh.ch


not sure if this is a bug, but LTO generates intermediate files in $TMPDIR that
are readable by all

-rw-r--r--   cleUTZi.ltrans17.ltrans.o

instead of the usual -rw------- for other gcc files that appear in $TMPDIR


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/49697] read permission of LTO intermediate files
  2011-07-10 17:20 [Bug lto/49697] New: read permission of LTO intermediate files Joost.VandeVondele at pci dot uzh.ch
@ 2011-07-11  9:26 ` rguenth at gcc dot gnu.org
  2012-05-07 12:40 ` rguenth at gcc dot gnu.org
  2022-01-01 12:05 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-11  9:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49697

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-11 09:26:31 UTC ---
It uses your umask, similar to what it uses for the generated assembly.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/49697] read permission of LTO intermediate files
  2011-07-10 17:20 [Bug lto/49697] New: read permission of LTO intermediate files Joost.VandeVondele at pci dot uzh.ch
  2011-07-11  9:26 ` [Bug lto/49697] " rguenth at gcc dot gnu.org
@ 2012-05-07 12:40 ` rguenth at gcc dot gnu.org
  2022-01-01 12:05 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-07 12:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49697

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-07
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-07 12:37:52 UTC ---
Confirmed at least.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/49697] read permission of LTO intermediate files
  2011-07-10 17:20 [Bug lto/49697] New: read permission of LTO intermediate files Joost.VandeVondele at pci dot uzh.ch
  2011-07-11  9:26 ` [Bug lto/49697] " rguenth at gcc dot gnu.org
  2012-05-07 12:40 ` rguenth at gcc dot gnu.org
@ 2022-01-01 12:05 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-01 12:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49697

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
  lo->fd = open (fname,
                 (writable
                  ? O_WRONLY | O_CREAT | O_BINARY
                  : O_RDONLY | O_BINARY),
                 0666);

Every other file that gets created by GCC is fopen which according to the man
page:
       Any created file will have the mode S_IRUSR | S_IWUSR | S_IRGRP |
S_IWGRP | S_IROTH | S_IWOTH (0666), as modified by the process's umask value
(see umask(2)).


I would assume umask modifies open's mode too ...

Let me try to dig into this slightly more tomorrow.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-01 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-10 17:20 [Bug lto/49697] New: read permission of LTO intermediate files Joost.VandeVondele at pci dot uzh.ch
2011-07-11  9:26 ` [Bug lto/49697] " rguenth at gcc dot gnu.org
2012-05-07 12:40 ` rguenth at gcc dot gnu.org
2022-01-01 12:05 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).