[systemd-bugs] [Bug 54560] New: systemd does not follow symlinks that point outside of /etc/systemd/system or /usr/lib/systemd/system

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 5 07:14:40 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54560

             Bug #: 54560
           Summary: systemd does not follow symlinks that point outside of
                    /etc/systemd/system or /usr/lib/systemd/system
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: rnmccall at gmail.com
         QAContact: systemd-bugs at lists.freedesktop.org


I'm running Fedora 17 x86_64.

[root at dvat-dev-rmccall-f17 ~]# rpm -q systemd
systemd-44-8.fc17.x86_64

When I try to `systemctl enable bar.service` (a symlink in /etc/systemd/system
pointing to /usr/share/foo/bar.service), I get an error of: "Failed to issue
method call: No such file or directory".

I am able to work around this by manually creating the symlink:
[root at dvat-dev-rmccall-f17 multi-user.target.wants]# ls -al bar.service 
lrwxrwxrwx. 1 root root 26 Sep  5 10:13 bar.service ->
/usr/share/foo/bar.service

Recreation details:
[root at dvat-dev-rmccall-f17 system]# ls -al /usr/share/foo/bar.service
-rw-r--r--. 1 root root 152 Sep  5 09:22 /usr/share/foo/bar.service

[root at dvat-dev-rmccall-f17 system]# pwd
/etc/systemd/system

[root at dvat-dev-rmccall-f17 system]# ls -al bar.service
lrwxrwxrwx. 1 root root 26 Sep  5 09:19 bar.service ->
/usr/share/foo/bar.service
[root at dvat-dev-rmccall-f17 system]# systemctl enable bar.service
Failed to issue method call: No such file or directory

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list