* polkit にパッチを当ててほしい [#k254477b]

メッセージ

http://cgit.freedesktop.org/PolicyKit/commit/?id=7850d27017fed1834268a852350ae85381fbb110 のパッチを当ててもらえないでしょうか。

/usr/share/polkit-1/actions/org.plamolinux.pkexec.gparted.policy を

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.plamolinux.pkexec.gparted">
    <message>Authentication is required to run the GParted Partition Editor</message>
    <icon_name>gparted</icon_name>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

のような内容で作って、xhost +localhost して、 pkexec /usr/sbin/gparted のように起動すると、root のパスワードが要求されて(たぶん /usr/libexec/polkit-gnome-authentication-agent-1 が動いている必要あり)GUI なアプリケーションが root 権限で起動出来るようになります。




トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-12-17 (金) 16:35:44