Coder Social home page Coder Social logo

mate-polkit's Introduction

mate-desktop
=============

mate-desktop contains the libmate-desktop library, the mate-about
program as well as some desktop-wide documents.

The libmate-desktop library provides API shared by several applications
on the desktop, but that cannot live in the platform for various
reasons. There is no API or ABI guarantee, although we are doing our
best to provide stability. Documentation for the API is available with
gtk-doc.

The mate-about program helps find which version of MATE is installed.

You may download updates to the package from:

   http://pub.mate-desktop.org/releases/


Installation
============

If you are not using a released version of mate-desktop (for example,
if you checked out the code from git), you first need to run
'./autogen.sh'.


How to report bugs
==================

Bugs should be reported to the MATE bug tracking system:

   https://github.com/mate-desktop/mate-desktop/issues

mate-polkit's People

Contributors

clefebvre avatar flexiondotorg avatar infirit avatar lukefromdc avatar mbkma avatar monsta avatar perberos avatar piotrdrag avatar raveit65 avatar rbuj avatar sc0w avatar semmu avatar stefano-k avatar szesch avatar tamplan avatar the-blank-x avatar yetist avatar zhuyaliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mate-polkit's Issues

License ?

The COPYING file refers to the GPL-2.0 while in the header of most files it is the LGPL-2.0 that is mentioned.
Could you please clarify which license apply to mate-polkit (both, only the GPL or only the LGPL ?)

Also, for info the LGPL-2.0-or-later has been superseded by LGPL-2.1-or-later, so ideally it's better to refer to version 2.1 if you have to update something (source).

Privilige Escalation icon corrupt (when built with appindicator support).

Arch Linux
Package: mate-polkit 1.18.1-1 (https://www.archlinux.org/packages/community/x86_64/mate-polkit/)

With 1.18 an old problem has resurfaced (that emerged initially on 1.16 and was fixed on 1.17, if memory serves me right): The Privilege Escalation icon on the notification area of the panel is showing again corrupt.

According to the PKGBUILD file, the package is built from the sources available at http://pub.mate-desktop.org/sources/mate-polkit/1.18/mate-polkit-1.18.1.tar.xz and without any modifications.

Thank you to lukefromdc for helping with this bug report.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

shlib-fixed-dependency

libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Atk) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GLib) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GModule) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GObject) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gdk) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GdkPixbuf) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gio) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gtk) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Pango) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Polkit) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(cairo) = 1.0
Your shared library package requires a fixed version of another package. The
intention of the Shared Library Policy is to allow parallel installation of
multiple versions of the same shared library, hard dependencies likely make
that impossible. Please remove this dependency and instead move it to the
runtime uses of your library.

Consider deprecating this fork to reuse GNOME's polkit

As we've (with stefano-k) spoken about in a query; could you look into whether it is possible to deprecate and remove the mate-polkit fork to reuse gnome-polkit, as well have the reverse dependencies use gnome-polkit?

Less packages translates to less maintenance at distributions.

Thank you very much in advance.

Configure option to build without Ayatana Appindicators

Expected behaviour

A possibility to build mate-polkit without libayatana-appindicators even if devel package is present in the system (for portability reasons, to avoid this dependency on some other machines).

Actual behaviour

mate-polkit is automatically build with libayatana-appindicators requirement (if -devel package is present)

Steps to reproduce the behaviour

rpmbuild mate-polkit

MATE general version

1.27

Package version

1.27.git

Linux Distribution

Rocky Linux

Link to bugreport of your Distribution (requirement)

Custom builds, distribution has nothing to do with that. Besides, it is more a feature request and not abug report.

It would be nice if it would be relatively simple to switch builds with or without libayatana-indicators, as it is with mate-indicator-applet for instance (using "--with-ayatana-indicators" or "--with-ubuntu-indicators" configure option), no matter if libayatana -devel packages are installed or not.

I'd like to keep those packages installed, but build a complete mate desktop environment without libayatana requirements (I've successfully built libayatana-indicator / libayatana-appindicator / ayatana-ido packages, but many ayatana-indicator-... packages doesn't work in Rocky Linux 9 for me at the moment). I need those ayatana packages for some other package(s) though, so it is really annoying to install / uninstall all the time, depending on what is built...

can not found "Polkit-1.0.gir"

I install mate from source code.My os is fedora14.When i compile mate-polkit package, i got this error
CC libpolkit_gtk_mate_1_la-polkitlockbutton.lo
polkitlockbutton.c: In function 'update_state':
polkitlockbutton.c:683:16: warning: 'text' may be used uninitialized in this function
polkitlockbutton.c:684:16: warning: 'tooltip' may be used uninitialized in this function
polkitlockbutton.c:685:12: warning: 'sensitive' may be used uninitialized in this function
CCLD libpolkit-gtk-mate-1.la
CC example-example.o
CCLD example
/usr/bin/g-ir-scanner -v
--namespace PolkitGtkMate
--strip-prefix=Polkit
--nsversion=1.0
--include=Gtk-2.0
--include=Polkit-1.0
--library=polkit-gtk-mate-1
--output PolkitGtkMate-1.0.gir
--pkg=polkit-gobject-1
--pkg=gtk+-2.0
--libtool=../libtool
-I..
-DPOLKIT_GTK_MATE_COMPILATION
./polkitgtkmate.h
./polkitgtkmatetypes.h
./polkitlockbutton.h \

Couldn't find include 'Polkit-1.0.gir' (search path: ['/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0'])
make[2]: *** [PolkitGtkMate-1.0.gir] Error 1
make[2]: Leaving directory /home/blackrose/Downloads/MATE/Mate-Desktop-Environment/mate-polkit/polkitgtkmate' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/blackrose/Downloads/MATE/Mate-Desktop-Environment/mate-polkit'
make: *** [all] Error 2

How i resolve this problem? Thank you!

Confusing "Authenticate" button when using pam_u2f

Description

I'm using mate-polkit as my polkit agent. I have it set up to work with my Yubikey using pam_u2f.

So when I'm prompted to authorise, I have to tap my yubikey and that all works fine. There's no password-typing involved.

Actual behaviour

The prompt that I get has an "Authenticate" button, which does nothing when clicked and is a bit confusing (even though I know it does nothing, sometimes I click it instead of tapping my yubikey ๐Ÿคฆโ€โ™‚๏ธ

image

Expected behaviour

When not requesting a password, the "Authenticate" button should not be present; only "Cancel" makes sense here.

Steps to reproduce the behaviour

You'll need to configure pam_u2f. This is my /etc/pam.d/polkit-1:

#%PAM-1.0

auth       sufficient   pam_u2f.so authfile=/etc/u2f_mappings
auth       include      system-auth
account    include      system-auth
password   include      system-auth
session    include      system-auth

If you don't have a key plugged in, the popup still shows but closes right away. So you can at least get a glimpse of the issue without a Yubikey.

I'm also not sure why it won't ask for a password when there's no key present though, that should suffice and it's what sudo does.

Package version

mate-polkit 1.26.0

Linux Distribution

ArchLinux

mate-polkit and GRSEC

Today I did a quick test with mate-polkit on a GRSEC based Linux kernel.

By whatever reason, mate-polkit fails to start. More info, once I have rebooted into GRSEC kernel the next time.

status notifier icon keeps showing after dropping elevated privileges

When mate-polkit is complied with appindicator support and run with mate-panel 1.19, a popup menu with one menu item "drop all elevated privileges" is used rather than clicking on the icon to revoke priviliges. Clicking on the menu item does drop priviliges, but the status icon does not disappear, it continues to show until the panel is restarted. The menu pops up and down normally


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Run polkit-mate-authentication-agent only when running MATE

The file
/etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop

causes MATE's polkit auth agent to be started when running e.g. Gnome3. It should only be started when running mate (or gnome-fallback).

The corresponding file shipped with gnome3 does this via the following line:

AutostartCondition=GNOME3 if-session gnome-fallback

mate-polkit-1.6.1 nuked comments in desktop file.

Update to 1.6.1 seems to have nuked all the translations in the
.desktop file for the comments - likely because after commit 002703a changed the
string but didn't fuzz the translation files. I think this is probably unintentional.

Meson: prefix not applied to .desktop file

Expected behaviour

compiling with meson and
meson setup build --prefix=/usr

starting in source directory with
Exec=@FULL_LIBEXECDIR@/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop.in.in
should yield
Exec=/usr/libexec/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop
and program should autostart at runtime

Actual behaviour

compiling with meson and
meson setup build --prefix=/usr

starting in source directory with
Exec=@FULL_LIBEXECDIR@/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop.in.in
yields
Exec=libexec/polkit-mate-authentication-agent-1
which of course means the program won't run, as the binary still installs to
/usr/libexec/polkit-mate-authentication-agent-1

Steps to reproduce the behaviour

Build mate-polkit with meson and specify an install prefix. Either navigate to build/src/polkit-mate-authentication-agent-1.desktop and check the path specified for the binary or install it and attempt to start it from the autostart file. Program does not run, elevated privilige tasks can only be done from terminal with sudo or by manually starting /usr/libexec/polkit-mate-authentication-agent-1 (or wherever you install it)

MATE general version

1.27

Package version

Locally built (using meson) mate-polkit from git master current as of 8-31-2023

Linux Distribution

Debian Unstable

Link to bugreport of your Distribution (requirement)

None as this is a locally built package

1.26.1 release?

There is segmentation fault fixed year ago, but it's still unreleased, is there a plan to release bugfix version with latest fixes?

Don't show system tray icon when built without --enable-appindicator

When mate-polkit is configured without --enable-appindicator (like the arch package) then every time is runs, it shows an ugly icon on system tray which immediately disappears if you click on it. I've made a bug report on the arch package in order to add --enable-appindicator option, but I believe that the current behaviour isn't appropriate.

In my opinion, when --enable-appindicator is not used, then it shouldn't show any icon on system tray at all, because otherwise it's ugly and confusing for users. I don't know if this can be easily implemented. Tell me what you think.

Show what for users password is needed.

As written in a downstream bug, https://bugs.mageia.org/show_bug.cgi?id=12145
mate-polkit doesn't show if the needed password is an users or the root one. Other polkit agent like the Gnome one show an avater.

A simple text could be enough.

Thanks

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/16225245-show-what-for-users-password-is-needed?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github).

No more libappindicator3-dev at debian

Expected behaviour

Someone who is using debian should fix this problem.

Actual behaviour

No more libappindicator3-dev at debian.
Travis CI build is disable for debian, see 44c8a5b

Steps to reproduce the behaviour

MATE general version

Package version

Linux Distribution

Debian

Link to bugreport of your Distribution (requirement)

No password GUI when using *-pkexec commands

When I try to access any application that uses policy kit I am not prompted to enter a password. Could you suggest where to start looking for the problem?

I'm using LMDE with the SID repos.
mate-polkit, libmatepolkit : 1.6.0-1+lmde
gir1.2-polkit-1.0 : 0.112-2

In .xsession I'm seeing the following.

** (polkit-mate-authentication-agent-1:4941): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in
Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in

when you move window,the focus will not focus on mate-polkit

for example:
1.open launage-setting(anyone need authenaticate)
2.click "apply the whole system"
3.popup mate-polkit window,the focus on the gtkentry
4.cancell
5.move the window of launage-setting
6.do as step 2-3
7.the focus will not on mate-polkit
i donot know how to deal with this bug

Error not helpful when mate Polkit Agent won't start.

I have this message in .xsession-errors
(polkit-mate-authentication-agent-1:26588): polkit-mate-1-WARNING **: Unable to determine the session we are in: No session for pid 26588

and that's the message I get when I try to start it manually:
$ mate-polkit
(polkit-mate-authentication-agent-1:27651): polkit-mate-1-WARNING **: Unable to determine the session we are in: No session for pid 27651

Unfortunately, it does not give any information about what might be the issue.
I assume that the underlying problem is somewhere else, but I can't figure that out from this message. Please improve the message (e.G. "Unable to determinate the session we are in: No session found for pid 4711. Is mate-session-controller running?" or something else that might give away an idea on where to look.)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39822595-error-not-helpful-when-mate-polkit-agent-won-t-start?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github).

polkit-gtk-mate-1-docs.xml references wrong license

Hi,

All code files in mate-polkit are licensed under LGPL-2+. The code files also contain the API documentation as code-inlined text.

However, the file docs/polkit-gtk-mate-1-docs.xml maintains that the API is licensed under GFDL-1.1. This contradicts to the license header information of the individual code files.

However, one may presume that GNOME upstream originally aimed at licensing the API (as they did with other docs) under GFDL and code under LGPL.

Strategically, I would be very strict and apply license headers from the code files to the API documentation (though LGPL is not a typical documentation license).

If you choose another approach and want (at the same time) comply to the DFSG, you have to rewrite the code-inlined API documentation of mate-polkit.

Alternatively, you could contact David Zeuthen and ask for relicensing the docs.

light+love,
Mike

polkit-mate-authentication-agent-1.desktop broken near Categories= key

Expected behaviour

an intact .desktop file in XDG autostart

Actual behaviour

missing EOL character after Categories= key in /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop

Steps to reproduce the behaviour

Rebuild from source and check the resulting polkit-mate-authentication-agent-1.desktop file

MATE general version

1.24

Package version

1.24.0

Linux Distribution

Debian

Link to downstream report of your Distribution

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952402

pkexec only in terminal

When I run a command in the terminal with pkexec it works fine. But when I use a starter or alt + F2 to run a command with pkexec nothing happens. In Gnome 3 it also works. I use Arch Linux.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.