<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - loginctl kill-user totally borken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71092">71092</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>loginctl kill-user totally borken
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marius.vollmer@redhat.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=88408" name="attach_88408" title="logind: use correct "who" enum values with KillUnit.">attachment 88408</a> <a href="attachment.cgi?id=88408&action=edit" title="logind: use correct "who" enum values with KillUnit.">[details]</a></span>
logind: use correct "who" enum values with KillUnit.

systemd 208-4 in Fedora 20.

loginctl kill-user fails reliably with

    Failed to issue method call: Input/output error

with this in the journal:

    Failed to issue method call: Invalid argument
    Failed to stop unit user-1000.slice: Input/output error

This happens because user_kill in login-user.c passes "process" or "cgroup" to
the systemd KillUnit method, while the latter expects "main", "control", or
"all".

The attached patch fixes this.  I am not sure whether to use "main" or
"control" for KILL_LEADER, though.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>