Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8081] New: systemd init system: /tmp is not mode 1777
@ 2015-05-03 13:05 bugzilla at busybox.net
  2015-07-07 21:02 ` [Buildroot] [Bug 8081] " bugzilla at busybox.net
  2015-08-04 19:01 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-05-03 13:05 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8081

           Summary: systemd init system: /tmp is not mode 1777
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: bos at je-eigen-domein.nl
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Using:

- latest buildroot from git
- start with raspberrypi2_defconfig
- set systemd as init system
- initramfs linked into kernel

/tmp is not mode 1777 causing software that does not run as root and wants to
write to /tmp or (linked folders like /var/log) to fail.

==
# ls -ld /tmp
drwxr-xr-x    7 root     root           220 Jan  1 00:00 /tmp
==

Also tmpfiles service fails to start:

==
 systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static;
vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:06 UTC; 2min
8s ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 131 ExecStart=/bin/systemd-tmpfiles --create --remove --boot
--exclude-prefix=/dev (code=exited, status=1/FAILURE)
 Main PID: 131 (code=exited, status=1/FAILURE)
==

And logging is not functional:

==
# journalctl
No journal files were found.
==

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8081] systemd init system: /tmp is not mode 1777
  2015-05-03 13:05 [Buildroot] [Bug 8081] New: systemd init system: /tmp is not mode 1777 bugzilla at busybox.net
@ 2015-07-07 21:02 ` bugzilla at busybox.net
  2015-08-04 19:01 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-07-07 21:02 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8081

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-07-07 21:02:31 UTC ---
Are you sure you have not done some mistake? I just tested generating an initrd
with systemd support, and it boots fine under Qemu, and /tmp has 1777 access
rights:

# ls -l /
total 4
drwxr-xr-x    2 root     root             0 Jul  7 21:00 bin
drwxr-xr-x    7 root     root          2980 Jul  7 21:01 dev
drwxr-xr-x   15 root     root             0 Jul  7 21:01 etc
drwxr-xr-x    3 root     root             0 Mar  8  2014 home
-rwxr-xr-x    1 root     root           176 Jul  7 20:50 init
drwxr-xr-x    4 root     root             0 Jul  7 21:00 lib
lrwxrwxrwx    1 root     root             3 Jul  7 15:57 lib32 -> lib
lrwxrwxrwx    1 root     root            11 Jul  7 15:58 linuxrc -> bin/busybox
drwxr-xr-x    2 root     root             0 Oct  4  2014 media
drwxr-xr-x    2 root     root             0 Oct  4  2014 mnt
drwxr-xr-x    2 root     root             0 Oct  4  2014 opt
dr-xr-xr-x   44 root     root             0 Jan  1  1970 proc
drwx------    2 root     root             0 Jul  7 21:01 root
drwxr-xr-x    9 root     root           240 Jul  7 21:01 run
drwxr-xr-x    2 root     root             0 Jul  7 21:00 sbin
drwxr-xr-x    2 root     root             0 Jul  7 21:01 srv
dr-xr-xr-x   12 root     root             0 Jul  7 21:01 sys
drwxrwxrwt    7 root     root           180 Jul  7 21:01 tmp
drwxr-xr-x    7 root     root             0 Jul  7 21:00 usr
drwxr-xr-x    4 root     root             0 Jul  7 21:01 var

Can you confirm that the issue is still reproducible with the latest Buildroot?

Thanks!

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8081] systemd init system: /tmp is not mode 1777
  2015-05-03 13:05 [Buildroot] [Bug 8081] New: systemd init system: /tmp is not mode 1777 bugzilla at busybox.net
  2015-07-07 21:02 ` [Buildroot] [Bug 8081] " bugzilla at busybox.net
@ 2015-08-04 19:01 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-08-04 19:01 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8081

Floris Bos <bos@je-eigen-domein.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Floris Bos <bos@je-eigen-domein.nl> 2015-08-04 19:01:11 UTC ---
Issue with /tmp not being mode 1777 when systemd is used, is no longer
reproducible with recent buildroot from git.

Logging is still broken when systemd is used, but there is already bug 7892 for
that, so closing this.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

end of thread, other threads:[~2015-08-04 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03 13:05 [Buildroot] [Bug 8081] New: systemd init system: /tmp is not mode 1777 bugzilla at busybox.net
2015-07-07 21:02 ` [Buildroot] [Bug 8081] " bugzilla at busybox.net
2015-08-04 19:01 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox