| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
cannot be used normally
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Looks like it was a typo.
|
|
|
|
|
|
| |
Same rationale as https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/11
and https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/72 /etc is for
local admin changes, upstream/vendor config files should go in /usr/share
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On at least Linux/musl and Linux/uclibc, netgroup support is not
available. PolKit fails to compile on these systems for that reason.
This change makes netgroup support conditional on the presence of the
setnetgrent(3) function which is required for the support to work. If
that function is not available on the system, an error will be returned
to the administrator if unix-netgroup: is specified in configuration.
(sam: rebased for Meson and Duktape.)
Closes: https://gitlab.freedesktop.org/polkit/polkit/-/issues/14
Closes: https://gitlab.freedesktop.org/polkit/polkit/-/issues/163
Closes: https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/52
Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
|
|
|
|
|
|
|
| |
See https://bugs.freedesktop.org/show_bug.cgi?id=23867
which turned up from `git annotate` here.
I was reading this code and noticed it was duplicated.
|
|
|
|
|
|
|
| |
See https://bugs.freedesktop.org/show_bug.cgi?id=23867
which turned up from `git annotate` here.
I was reading this code and noticed it was duplicated.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix the following build failure without C++ raised since
https://gitlab.freedesktop.org/polkit/polkit/-/commit/957a015157fd359d9679540f664183e4b9492896:
The following exception(s) were encountered:
Running "/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++ --version" gave "[Errno 2] No such file or directory: '/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++'"
Indeed, C++ is only required with mozjs engine
Fixes:
- http://autobuild.buildroot.org/results/1d52c8100414aa384572b23006a13f9b806d2d5a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Original author: Wu Xiaotian (@yetist)
Resurrection author, runaway-killer author: Gustavo Lima Chaves (@limachaves)
|
|
|
|
|
|
|
|
| |
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications.
This migrates from Intltool to Gettext both autotools and meson
build systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Autotools build system has been using /usr/lib/polkit-1 for several
releases, even on distributions where the library directory is /usr/lib64
or /usr/lib/x86_64-linux-gnu, so it makes sense for Meson to do the same.
This lets 32- and 64-bit polkit agents share a single helper executable.
This might be superseded by polkit!63, which requests going back to using
the libexecdir for these (like polkit 0.105 did), which would also make
sense; but until that's decided, let's at least be consistent between
our two build systems.
Every time we change this, all programs that have already loaded
libpolkit-agent into their address space need to be restarted, unless
distributions provide compatibility symlinks.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
| |
initial values returned if error caught
|
|
|
|
|
| |
into 'master'"
This reverts merge request !75
|
|
|
|
| |
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
|
|
|
|
|
|
|
|
|
| |
Add properties to turn off the use of color, to enable
the use of the alternate screen buffer, and to add a delay
before switching back from the alernate screen buffer.
This makes the text listener usable in situations where
just printing the text would disturb formatting on the
screen.
|
|
|
|
|
|
| |
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
|
| |
|
| |
|
|
|
|
| |
Just compiles and installs polkit
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When strings handled by the jsbackendauthority contain non-ASCII, the
code will fail. For example, on a system having a user with a
non-ASCII name, the following message will appear when a USB stick is
plugged in.
mar 04 21:47:31 mimmi polkitd[17163]: Error evaluating authorization rules
The user will not be allowed to do the mount.
The problem is that strings were variously encoded back to C strings
with JS_EncodeString and JS_EncodeStringToUTF8. According to the
documentation
(https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EncodeString#Description)
the former will simply drop the high byte from each character. If
that happens to a username, it will no longer be found as a valid user
name on the system. Explicitly encoding to UTF-8 will at least work
in UTF-8 locales, which is the increasingly dominant encoding.
|
| |
|
|
|
|
| |
If no password is typed into terminal during authentication raised by PolkitAgentTextListener, pkttyagent sends kill (it receives from systemctl/hostnamectl e.g.) without chance to restore echoing back on. This cannot be done in on_request() since it's run in a thread without guarantee the signal is distributed there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
API changes in mozjs that need to be reflected in the JS authority:
- the JS::CompileOptions constructor and the JS::CompartmentOptions
do not allow setting a JS version any more
- do not use NULL comparisons for C++ objects
- the resize() method for a vector has a return value that needs
to be handled
- JSClassOps has different fields
|