[Bug 1584759] [NEW] masking NetworkManager ineffective without also masking network-manager

Lauri Tirkkonen 1584759 at bugs.launchpad.net
Mon May 23 12:42:50 UTC 2016


Public bug reported:

On xenial (systemd 229), 'systemctl mask NetworkManager' is ineffective;
I can still start the service (and in fact it starts on boot). This may
be due to an interaction with an init.d script with a different name
("network-manager").

    root at test-paniikki:~# systemctl is-enabled NetworkManager network-manager
    enabled
    enabled
    root at test-paniikki:~# systemctl mask NetworkManager
    Created symlink from /etc/systemd/system/NetworkManager.service to /dev/null.
    root at test-paniikki:~# systemctl is-enabled NetworkManager network-manager
    masked
    masked
    root at test-paniikki:~# systemctl start NetworkManager; echo $?
    0
    root at test-paniikki:~# systemctl status --no-pager NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/lib/systemd/system/NetworkManager.service; masked; vendor preset: enabled)
       Active: active (running) since Mon 2016-05-23 15:39:09 EEST; 9s ago
     Main PID: 6155 (NetworkManager)
        Tasks: 6 (limit: 512)
       CGroup: /system.slice/NetworkManager.service
               ├─6155 /usr/sbin/NetworkManager --no-daemon
               ├─6167 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /va...
               └─6182 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-in...


Only if 'network-manager' is also masked will the service fail to start:

    root at test-paniikki:~# systemctl mask network-manager
    Created symlink from /etc/systemd/system/network-manager.service to /dev/null.
    root at test-paniikki:~# systemctl stop NetworkManager
    root at test-paniikki:~# systemctl start NetworkManager
    Failed to start NetworkManager.service: Unit NetworkManager.service is masked.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1584759

Title:
  masking NetworkManager ineffective without also masking network-
  manager

Status in systemd package in Ubuntu:
  New

Bug description:
  On xenial (systemd 229), 'systemctl mask NetworkManager' is
  ineffective; I can still start the service (and in fact it starts on
  boot). This may be due to an interaction with an init.d script with a
  different name ("network-manager").

      root at test-paniikki:~# systemctl is-enabled NetworkManager network-manager
      enabled
      enabled
      root at test-paniikki:~# systemctl mask NetworkManager
      Created symlink from /etc/systemd/system/NetworkManager.service to /dev/null.
      root at test-paniikki:~# systemctl is-enabled NetworkManager network-manager
      masked
      masked
      root at test-paniikki:~# systemctl start NetworkManager; echo $?
      0
      root at test-paniikki:~# systemctl status --no-pager NetworkManager
      ● NetworkManager.service - Network Manager
         Loaded: loaded (/lib/systemd/system/NetworkManager.service; masked; vendor preset: enabled)
         Active: active (running) since Mon 2016-05-23 15:39:09 EEST; 9s ago
       Main PID: 6155 (NetworkManager)
          Tasks: 6 (limit: 512)
         CGroup: /system.slice/NetworkManager.service
                 ├─6155 /usr/sbin/NetworkManager --no-daemon
                 ├─6167 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /va...
                 └─6182 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-in...

  
  Only if 'network-manager' is also masked will the service fail to start:

      root at test-paniikki:~# systemctl mask network-manager
      Created symlink from /etc/systemd/system/network-manager.service to /dev/null.
      root at test-paniikki:~# systemctl stop NetworkManager
      root at test-paniikki:~# systemctl start NetworkManager
      Failed to start NetworkManager.service: Unit NetworkManager.service is masked.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1584759/+subscriptions



More information about the foundations-bugs mailing list