summaryrefslogtreecommitdiff
path: root/gio/gdbusauthobserver.c
Commit message (Collapse)AuthorAgeFilesLines
* gio: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gio/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* gdbus: Add flags to require authentication as the same userPhilip Withnall2021-02-111-1/+3
| | | | | | | | | | | | This eliminates a common use case for the `GDBusAuthObserver::authorize-authenticated-peer` signal, which is often implemented incorrectly by people. Suggested by Simon McVittie. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #1804
* Normalize C source files to end with exactly one newlineSimon McVittie2020-06-101-1/+0
| | | | | | | | | | | | | | | | | | | Some editors automatically remove trailing blank lines, or automatically add a trailing newline to avoid having a trailing non-blank line that is not terminated by a newline. To avoid unrelated whitespace changes when users of such editors contribute to GLib, let's pre-emptively normalize all files. Unlike more intrusive whitespace normalization like removing trailing whitespace from each line, this seems unlikely to cause significant issues with cherry-picking changes to stable branches. Implemented by: find . -name '*.[ch]' -print0 | \ xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g' Signed-off-by: Simon McVittie <smcv@collabora.com>
* gio: remove use of generic marshaller from GIO objectsChristian Hergert2019-06-171-2/+9
| | | | | | | | | | | | | | Using the generic marshaller has drawbacks beyond performance. One such drawback is that it breaks the stack unwinding from the Linux kernel due to having unsufficient data to walk past ffi_call_unixt64. That means that performance profiling by application developers looks grouped among seemingly unrelated code paths. While we can't fix the kernel unwinding here, we can provide proper c_marshallers and va_marshallers for objects within Gio so that performance profiling of applications is more reliable. Related to GNOME/Initiatives#10
* GDBusAuthObserver: Document how to restrict authentication to EXTERNALSimon McVittie2019-06-111-0/+24
| | | | | | | This is simpler and more robust than DBUS_COOKIE_SHA1, which relies on assumptions about random numbers and a secure home directory. Signed-off-by: Simon McVittie <smcv@collabora.com>
* GDBusAuthObserver: Fix mixup between authentication and authorizationSimon McVittie2019-06-111-1/+1
| | | | | | | | | Authentication is about proving who I am; authorization is about whether, given the knowledge of who I am, I am allowed to do something. GDBusServer and GDBusConnection carry out authentication automatically, but rely on the library user to carry out authorization. Signed-off-by: Simon McVittie <smcv@collabora.com>
* GDBusServer: Document that a GDBusAuthObserver is usually desirableSimon McVittie2019-06-111-3/+5
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-1/+1
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* Drop trailing semi-colon from G_DEFINE_ macroEmmanuele Bassi2017-04-101-1/+1
| | | | | | | | It's unnecessary, and only adds visual noise; we have been fairly inconsistent in the past, but the semi-colon-less version clearly dominates in the code base. https://bugzilla.gnome.org/show_bug.cgi?id=669355
* introspection: use (nullable) or (optional) instead of (allow-none)Christian Hergert2016-11-221-2/+2
| | | | | | | | If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
* gio: Intern all signal names beforehandMatthias Clasen2015-09-121-2/+2
| | | | This avoids pointless copying of static strings.
* docs: Add missing language annotationsMatthias Clasen2014-06-011-1/+1
|
* Convert remaining examples to linksMatthias Clasen2014-02-081-2/+5
|
* Docs: replace <literal> by `Matthias Clasen2014-02-061-2/+2
|
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* GDBusAuthObserver: Add a way to control what authentication mechanisms to useDavid Zeuthen2012-04-141-0/+62
| | | | | This is related to https://bugzilla.gnome.org/show_bug.cgi?id=673943 but also useful in a lot of other contexts.
* Add missing allow-none annotations for function parameters.Robert Ancell2012-03-311-2/+2
| | | | | Found using: find . -name '*.c' | xargs grep 'or %NULL' | grep ' \* @' | grep -v '@error' | grep -v allow-none
* Pass in NULL instead of g_cclosure_marshal_genericJohan Dahlin2011-07-191-1/+1
| | | | | | | NULL is now a shortcut for g_cclosure_marshal_generic, so avoid referencing it directly. https://bugzilla.gnome.org/show_bug.cgi?id=654917
* Stop using glib-genmarshal at build timeColin Walters2011-06-201-2/+1
| | | | | | | | | | | | To help cross compilation, don't use glib-genmarshal in our build. This is easy now that we have g_cclosure_marshal_generic(). In gobject/, add gmarshal.[ch] to git (making the existing entry points stubs). In gio/, simply switch to using g_cclosure_marshal_generic(). https://bugzilla.gnome.org/show_bug.cgi?id=652168
* Start merging gdbus-codegen codeDavid Zeuthen2011-04-081-16/+1
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBusAuthObserver: Fix docsDavid Zeuthen2010-07-201-42/+11
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* gio/: fully remove gioalias hacksRyan Lortie2010-07-071-6/+0
|
* GDBus: Hide instance structures for classes we don't want to be subclassedDavid Zeuthen2010-07-071-9/+12
| | | | | | | This also allows us to nuke the priv-> pointers and save a couple of indirections. Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDBus: Hide class structures for classes we don't want to be subclassedDavid Zeuthen2010-07-071-0/+21
| | | | | | | | | E.g. move these C structures out of public header files and into their respective C files. Also nuke padding since this is no longer needed. This leaves only GDBusProxy as an extendable type. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Remove cases of ;;Matthias Clasen2010-07-051-1/+1
|
* GDBus: Rename ::deny-authentication-peer to ::authorize-authenticated-peerDavid Zeuthen2010-05-131-29/+45
|
* Update an example to the latest auth observer apiMatthias Clasen2010-05-121-7/+10
|
* Update copyright years to include 2010Matthias Clasen2010-05-091-1/+1
|
* GDBus: Add new symbols to gio.symbolsDavid Zeuthen2010-05-061-0/+4
|
* GDBus: Fix up i18nDavid Zeuthen2010-05-061-2/+2
|
* Add "Since: 2.26" to all new GDBus APIDavid Zeuthen2010-05-061-0/+6
|
* Set up gtk-doc for GDBusDavid Zeuthen2010-05-061-1/+1
| | | | | | | | Also move send_credentials() and receive_credentials() to GUnixConnection. This code might change, discussion is still ongoing in https://bugzilla.gnome.org/show_bug.cgi?id=617483.
* Initial GDBus code-drop from GDBus-standalone repoDavid Zeuthen2010-05-061-0/+218
Things compile and the test-suite passes. Still need to hook up gio.symbols and docs. There are still a bunch of TODOs left in the sources that needs to be addressed. Signed-off-by: David Zeuthen <davidz@redhat.com>