Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
polkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zbigniew Jędrzejewski-Szmek
polkit
Commits
5e55b4a2
Commit
5e55b4a2
authored
Mar 28, 2007
by
David Zeuthen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset project and remove all existing code
Some of the code, e.g. the daemon, will be brought back in other forms.
parent
e97e945e
Changes
59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
59 changed files
with
319 additions
and
8324 deletions
+319
-8324
COPYING
COPYING
+2
-2
Makefile.am
Makefile.am
+4
-7
NEWS
NEWS
+1
-1
configure.in
configure.in
+25
-238
doc/Makefile.am
doc/Makefile.am
+1
-1
doc/TODO
doc/TODO
+1
-39
doc/api/Makefile.am
doc/api/Makefile.am
+5
-42
doc/api/libpolkit/Makefile.am
doc/api/libpolkit/Makefile.am
+67
-0
doc/api/libpolkit/libpolkit-docs.xml
doc/api/libpolkit/libpolkit-docs.xml
+109
-0
doc/api/libpolkit/libpolkit.types
doc/api/libpolkit/libpolkit.types
+0
-0
doc/api/libpolkit/version.xml.in
doc/api/libpolkit/version.xml.in
+1
-0
doc/api/polkit-docs.xml
doc/api/polkit-docs.xml
+0
-15
doc/api/tmpl/libpolkit.sgml
doc/api/tmpl/libpolkit.sgml
+0
-114
doc/man/Makefile.am
doc/man/Makefile.am
+13
-0
doc/spec/Makefile.am
doc/spec/Makefile.am
+18
-14
doc/spec/config.xsl
doc/spec/config.xsl
+6
-0
doc/spec/docbook.css
doc/spec/docbook.css
+18
-0
doc/spec/polkit-arch.dia
doc/spec/polkit-arch.dia
+0
-0
doc/spec/polkit-arch.png
doc/spec/polkit-arch.png
+0
-0
doc/spec/polkit-spec-introduction.xml
doc/spec/polkit-spec-introduction.xml
+15
-0
doc/spec/polkit-spec.html
doc/spec/polkit-spec.html
+0
-384
doc/spec/polkit-spec.xml.in
doc/spec/polkit-spec.xml.in
+0
-628
doc/spec/polkit-spec.xml.in.in
doc/spec/polkit-spec.xml.in.in
+24
-0
libpolkit.pc.in
libpolkit.pc.in
+1
-1
libpolkit/Makefile.am
libpolkit/Makefile.am
+3
-28
libpolkit/libpolkit-grant.c
libpolkit/libpolkit-grant.c
+0
-407
libpolkit/libpolkit-grant.h
libpolkit/libpolkit-grant.h
+0
-125
libpolkit/libpolkit.c
libpolkit/libpolkit.c
+2
-374
libpolkit/libpolkit.h
libpolkit/libpolkit.h
+2
-44
pam-polkit-console/.gitignore
pam-polkit-console/.gitignore
+0
-7
pam-polkit-console/Makefile.am
pam-polkit-console/Makefile.am
+0
-18
pam-polkit-console/pam-polkit-console.c
pam-polkit-console/pam-polkit-console.c
+0
-262
policy-kit.in
policy-kit.in
+0
-8
polkit-interface-manager.xml
polkit-interface-manager.xml
+0
-48
polkit-interface-session.xml
polkit-interface-session.xml
+0
-50
polkitd/.gitignore
polkitd/.gitignore
+0
-13
polkitd/Makefile.am
polkitd/Makefile.am
+0
-94
polkitd/PolicyKit.conf.in
polkitd/PolicyKit.conf.in
+0
-20
polkitd/PolicyKit.in
polkitd/PolicyKit.in
+0
-80
polkitd/debug-polkitd.sh
polkitd/debug-polkitd.sh
+0
-9
polkitd/main.c
polkitd/main.c
+0
-303
polkitd/policy.c
polkitd/policy.c
+0
-1217
polkitd/policy.h
polkitd/policy.h
+0
-103
polkitd/polkit-manager.c
polkitd/polkit-manager.c
+0
-1089
polkitd/polkit-manager.h
polkitd/polkit-manager.h
+0
-132
polkitd/polkit-marshal.list
polkitd/polkit-marshal.list
+0
-1
polkitd/polkit-session.c
polkitd/polkit-session.c
+0
-1013
polkitd/polkit-session.h
polkitd/polkit-session.h
+0
-122
polkitd/polkitd-test.c
polkitd/polkitd-test.c
+0
-275
polkitd/run-polkitd.sh
polkitd/run-polkitd.sh
+0
-7
polkitd/valgrind-polkitd.sh
polkitd/valgrind-polkitd.sh
+0
-4
privileges/.gitignore
privileges/.gitignore
+0
-3
privileges/Makefile.am
privileges/Makefile.am
+0
-7
privileges/desktop-console.privilege
privileges/desktop-console.privilege
+0
-14
tools/Makefile.am
tools/Makefile.am
+1
-20
tools/polkit-grant-privilege.c
tools/polkit-grant-privilege.c
+0
-331
tools/polkit-is-privileged.c
tools/polkit-is-privileged.c
+0
-203
tools/polkit-list-privileges.c
tools/polkit-list-privileges.c
+0
-209
tools/polkit-revoke-privilege.c
tools/polkit-revoke-privilege.c
+0
-198
No files found.
COPYING
View file @
5e55b4a2
The PolicyKit
daemon and associated command-line tools polkit-* is
The PolicyKit
command-line tools are licensed to you under the GNU
licensed to you under the GNU
General Public License version 2.
General Public License version 2.
libpolkit is licensed to you under your choice of the Academic Free
libpolkit is licensed to you under your choice of the Academic Free
License version 2.1, or the GNU General Public License version 2.
License version 2.1, or the GNU General Public License version 2.
...
...
Makefile.am
View file @
5e55b4a2
## Process this file with automake to produce Makefile.in
## Process this file with automake to produce Makefile.in
SUBDIRS
=
libpolkit pam-polkit-console polkitd doc tools privileges
SUBDIRS
=
libpolkit doc tools
pamdir
=
$(sysconfdir)
/pam.d
pam_DATA
=
policy-kit
pkgconfigdir
=
$(libdir)
/pkgconfig
pkgconfigdir
=
$(libdir)
/pkgconfig
pkgconfig_DATA
=
polkit.pc
pkgconfig_DATA
=
lib
polkit.pc
# Creating ChangeLog from git log (taken from cairo/Makefile.am):
# Creating ChangeLog from git log (taken from cairo/Makefile.am):
...
@@ -28,9 +25,9 @@ $(srcdir)/ChangeLog:
...
@@ -28,9 +25,9 @@ $(srcdir)/ChangeLog:
.PHONY
:
ChangeLog $(srcdir)/ChangeLog
.PHONY
:
ChangeLog $(srcdir)/ChangeLog
DISTCLEANFILES
=
polkit.pc
DISTCLEANFILES
=
lib
polkit.pc
EXTRA_DIST
=
HACKING
polkit-interface-manager.xml polkit-interface-session.xml polkit.pc.in policy-kit
.in mkinstalldirs ChangeLog
EXTRA_DIST
=
HACKING
libpolkit.pc
.in mkinstalldirs ChangeLog
clean-local
:
clean-local
:
rm
-f
*
~
rm
-f
*
~
NEWS
View file @
5e55b4a2
...
@@ -4,6 +4,6 @@ PolicyKit 0.1 ""
...
@@ -4,6 +4,6 @@ PolicyKit 0.1 ""
WRITE ME
WRITE ME
Requirements for PolicyKit 0.1 "" (and
CVS HEAD
)
Requirements for PolicyKit 0.1 "" (and
git master
)
- glib >= 2.6.0
- glib >= 2.6.0
configure.in
View file @
5e55b4a2
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_PREREQ(2.57)
AC_INIT(PolicyKit, 0.
2
, david@fubar.dk)
AC_INIT(PolicyKit, 0.
3
, david@fubar.dk)
AM_INIT_AUTOMAKE(PolicyKit, 0.
2
)
AM_INIT_AUTOMAKE(PolicyKit, 0.
3
)
AM_CONFIG_HEADER(config.h)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_MAINTAINER_MODE
...
@@ -10,7 +10,7 @@ AM_MAINTAINER_MODE
...
@@ -10,7 +10,7 @@ AM_MAINTAINER_MODE
#
#
# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
#
#
LT_CURRENT=
0
LT_CURRENT=
1
LT_REVISION=0
LT_REVISION=0
LT_AGE=0
LT_AGE=0
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_CURRENT)
...
@@ -26,29 +26,12 @@ AC_PROG_MAKE_SET
...
@@ -26,29 +26,12 @@ AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_PROG_LN_S
AC_SYS_LARGEFILE
AC_SYS_LARGEFILE
AC_ARG_WITH(polkit_user,[ --with-polkit-user=<user> user for PolicyKit])
if test -z "$with_polkit_user" ; then
POLKIT_USER=polkit
else
POLKIT_USER=$with_polkit_user
fi
AC_SUBST(POLKIT_USER)
AC_DEFINE_UNQUOTED(POLKIT_USER, "$POLKIT_USER", [User for PolicyKit])
AC_ARG_WITH(polkit_group,[ --with-polkit-group=<grp> group for PolicyKit])
if test -z "$with_polkit_group" ; then
POLKIT_GROUP=polkit
else
POLKIT_GROUP=$with_polkit_group
fi
AC_SUBST(POLKIT_GROUP)
AC_DEFINE_UNQUOTED(POLKIT_GROUP,"$POLKIT_GROUP", [Group for PolicyKit])
# Taken from dbus
# Taken from dbus
AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
AC_ARG_ENABLE(docbook-docs, [ --enable-docbook-docs build documentation (requires xmlto)],enable_docbook_docs=$enableval,enable_docbook_docs=auto)
AC_ARG_ENABLE(docbook-docs, [ --enable-docbook-docs build documentation (requires xmlto)],enable_docbook_docs=$enableval,enable_docbook_docs=no)
AC_ARG_ENABLE(man-pages, [ --enable-man-pages build manual pages],enable_man_pages=$enableval,enable_man_pages=yes)
AM_CONDITIONAL(MAN_PAGES_ENABLED, test x$enable_man_pages = xyes)
GTK_DOC_CHECK([1.3])
GTK_DOC_CHECK([1.3])
...
@@ -138,30 +121,23 @@ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0])
...
@@ -138,30 +121,23 @@ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60])
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.60])
AC_SUBST(DBUS_GLIB_CFLAGS)
AC_SUBST(DBUS_GLIB_LIBS)
AC_CHECK_FUNCS(getgrouplist)
AC_CHECK_FUNCS(getgrouplist)
# DocBook Documentation
# DocBook Documentation
AC_PATH_PROG(XMLTO, xmlto, no)
AC_MSG_CHECKING([whether to build DocBook documentation])
AC_MSG_CHECKING([whether to build DocBook documentation])
if test x$DOCBOOK = xno ; then
AC_PATH_PROG(XMLTO, xmlto, no)
have_docbook=no
AC_PATH_PROG(XMLLINT, xmllint, no)
if test x$XMLLINT = xno ; then
have_xmllint=no
else
else
have_
docbook
=yes
have_
xmllint
=yes
fi
fi
if test x$enable_docbook_docs = xauto ; then
if test x$enable_docbook_docs = xauto ; then
if test x$have_
docbook
= xno ; then
if test x$have_
xmlto = xno || test x$have_xmllint
= xno ; then
enable_docbook_docs=no
enable_docbook_docs=no
else
else
enable_docbook_docs=yes
enable_docbook_docs=yes
...
@@ -169,8 +145,8 @@ if test x$enable_docbook_docs = xauto ; then
...
@@ -169,8 +145,8 @@ if test x$enable_docbook_docs = xauto ; then
fi
fi
if test x$enable_docbook_docs = xyes; then
if test x$enable_docbook_docs = xyes; then
if test x$have_
docbook
= xno; then
if test x$have_
xmlto
= xno; then
AC_MSG_ERROR([Building DocBook docs explicitly required, but
DocBook
not found])
AC_MSG_ERROR([Building DocBook docs explicitly required, but
xmlto
not found])
fi
fi
fi
fi
...
@@ -195,186 +171,22 @@ fi
...
@@ -195,186 +171,22 @@ fi
AC_SUBST(DOCDIR)
AC_SUBST(DOCDIR)
# PAM stuff borrowed from gnome-screensaver
if test "x$GCC" = "xyes"; then
LDFLAGS="-Wl,--as-needed $LDFLAGS"
# Determine PAM prefix
withval=""
AC_ARG_WITH(pam-prefix,
[ --with-pam-prefix=<prefix> specify where pam files go],[
if test x$withval != x; then
AC_MSG_RESULT("PAM files will be installed in prefix ${withval}.")
fi])
if test x$withval != x; then
PAM_PREFIX_UNEXPANDED="$withval"
else
PAM_PREFIX_UNEXPANDED="$sysconfdir"
fi
PAM_PREFIX=`eval echo $PAM_PREFIX_UNEXPANDED`
AC_SUBST(PAM_PREFIX)
dnl ---------------------------------------------------------------------------
dnl - Check for PAM
dnl ---------------------------------------------------------------------------
have_pam=no
AC_CHECK_LIB(pam, pam_start, have_pam=yes)
if test x$have_pam = xno; then
AC_ERROR([Could not find pam/pam-devel, please install the needed packages.])
else
AUTH_LIBS="${AUTH_LIBS} -lpam"
AC_DEFINE(HAVE_PAM, 1, [Define if PAM support is included])
# On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
have_timedwait=no
AC_CHECK_LIB(c, sigtimedwait, [have_timedwait=yes])
if test "$have_timedwait" = no ; then
AC_CHECK_LIB(rt, sigtimedwait, [AUTH_LIBS="${AUTH_LIBS} -lrt"])
fi
AC_MSG_CHECKING(how to call pam_strerror)
AC_CACHE_VAL(ac_cv_pam_strerror_args,
[AC_TRY_COMPILE([#include <stdio.h>
#include <stdlib.h>
#include <security/pam_appl.h>],
[pam_handle_t *pamh = 0;
char *s = pam_strerror(pamh, PAM_SUCCESS);],
[ac_pam_strerror_args=2],
[AC_TRY_COMPILE([#include <stdio.h>
#include <stdlib.h>
#include <security/pam_appl.h>],
[char *s =
pam_strerror(PAM_SUCCESS);],
[ac_pam_strerror_args=1],
[ac_pam_strerror_args=0])])
ac_cv_pam_strerror_args=$ac_pam_strerror_args])
ac_pam_strerror_args=$ac_cv_pam_strerror_args
if test "$ac_pam_strerror_args" = 1 ; then
AC_MSG_RESULT(one argument)
elif test "$ac_pam_strerror_args" = 2 ; then
AC_DEFINE(PAM_STRERROR_TWO_ARGS, 1, [Define if pam_strerror takes two arguments])
AC_MSG_RESULT(two arguments)
else
AC_MSG_RESULT(unknown)
fi
fi
AM_CONDITIONAL(HAVE_PAM, test x$have_pam = xyes)
AC_SUBST(HAVE_PAM)
AC_SUBST(AUTH_LIBS)
AC_CHECK_HEADER(security/pam_modutil.h, [AC_DEFINE(HAVE_PAM_MODUTIL_H, [], "Have pam_modutil.h")])
AC_CHECK_HEADER(security/pam_ext.h, [AC_DEFINE(HAVE_PAM_EXT_H, [], "Have pam_ext.h")])
AC_CHECK_LIB(pam, pam_vsyslog, [AC_DEFINE(HAVE_PAM_VSYSLOG, [], "Have pam_vsyslog")])
AC_ARG_WITH(pam-module-dir, [ --with-pam-module-dir=[dirname] directory to install PAM security module])
if ! test -z "$with_pam_module_dir"; then
PAM_MODULE_DIR=$with_pam_module_dir
else
PAM_MODULE_DIR="/lib/security"
fi
AC_SUBST(PAM_MODULE_DIR)
AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat)])
#### Check our operating system (distro-tweaks required)
if test "z$with_os_type" = "z"; then
AC_CHECK_FILE(/etc/redhat-release,distro_type="redhat")
AC_CHECK_FILE(/etc/SuSE-release,distro_type="suse")
if test "z$distro_type" = "z"; then
echo "Linux distribution autodetection failed, specify the distribution to target using --with-os-type="
else
operating_system=`echo ${distro_type} | tr '[[:upper:]]' '[[:lower:]]' `
fi
fi
#### Sort out OS (distro-tweaks required)
if test x$with_os_type = x; then
if test x$operating_system = xredhat ; then
with_os_type=redhat
elif test x$operating_system = xsuse ; then
with_os_type=suse
else
with_os_type=unknown
fi
fi
# (distro-tweaks required)
AM_CONDITIONAL(OS_TYPE_UNKNOWN, test x$with_os_type = xunknown, [Running on unknown OS])
AM_CONDITIONAL(OS_TYPE_RED_HAT, test x$with_os_type = xredhat, [Running on Red Hat OS'es])
AM_CONDITIONAL(OS_TYPE_SUSE, test x$with_os_type = xsuse, [Running on SUSE OS'es])
AC_ARG_WITH(pid-file, [ --with-pid-file=<file> pid file for polkitd])
#### Set up the pid file (distro-tweaks required)
if ! test -z "$with_pid_file"; then
POLKITD_PID_FILE=$with_pid_file
elif test x$with_os_type = xredhat ; then
POLKITD_PID_FILE=${LOCALSTATEDIR}/run/polkitd.pid
elif test x$with_os_type = xsuse ; then
POLKITD_PID_FILE=${LOCALSTATEDIR}/run/polkitd.pid
else
POLKITD_PID_FILE=${LOCALSTATEDIR}/run/polkitd/pid
fi
AC_SUBST(POLKITD_PID_FILE)
AC_DEFINE_UNQUOTED(POLKITD_PID_FILE, "$POLKITD_PID_FILE", [pid file])
AC_ARG_WITH(pam-include, [ --with-pam-include=<file> pam file to include])
#### Set up pam file to include (distro-tweaks required)
if ! test -z "$with_pam_include"; then
PAM_FILE_INCLUDE_AUTH=$with_pam_include
PAM_FILE_INCLUDE_ACCOUNT=$with_pam_include
PAM_FILE_INCLUDE_PASSWORD=$with_pam_include
PAM_FILE_INCLUDE_SESSION=$with_pam_include
elif test x$with_os_type = xredhat ; then
PAM_FILE_INCLUDE_AUTH=system-auth
PAM_FILE_INCLUDE_ACCOUNT=system-auth
PAM_FILE_INCLUDE_PASSWORD=system-auth
PAM_FILE_INCLUDE_SESSION=system-auth
elif test x$with_os_type = xsuse ; then
PAM_FILE_INCLUDE_AUTH=common-auth
PAM_FILE_INCLUDE_ACCOUNT=common-account
PAM_FILE_INCLUDE_PASSWORD=common-password
PAM_FILE_INCLUDE_SESSION=common-session
else
PAM_FILE_INCLUDE_AUTH=system-auth
PAM_FILE_INCLUDE_ACCOUNT=system-auth
PAM_FILE_INCLUDE_PASSWORD=system-auth
PAM_FILE_INCLUDE_SESSION=system-auth
fi
fi
AC_SUBST(PAM_FILE_INCLUDE_AUTH)
AC_SUBST(PAM_FILE_INCLUDE_ACCOUNT)
AC_SUBST(PAM_FILE_INCLUDE_PASSWORD)
AC_SUBST(PAM_FILE_INCLUDE_SESSION)
AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_AUTH, "$PAM_FILE_INCLUDE_AUTH", [pam file auth])
AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_ACCOUNT, "$PAM_FILE_INCLUDE_ACCOUNT", [pam file account])
AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_PASSWORD, "$PAM_FILE_INCLUDE_PASSWORD", [pam file password])
AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_SESSION, "$PAM_FILE_INCLUDE_SESSION", [pam file session])
AC_OUTPUT([
AC_OUTPUT([
policy-kit
libpolkit.pc
polkit.pc
Makefile
Makefile
pam-polkit-console/Makefile
polkitd/Makefile
polkitd/PolicyKit
polkitd/PolicyKit.conf
libpolkit/Makefile
libpolkit/Makefile
tools/Makefile
tools/Makefile
doc/Makefile
doc/Makefile
doc/api/Makefile
doc/api/Makefile
doc/api/libpolkit/Makefile
doc/api/libpolkit/version.xml
doc/spec/Makefile
doc/spec/Makefile
doc/spec/polkit-spec.xml
doc/spec/polkit-spec.xml
.in
privileges
/Makefile
doc/man
/Makefile
])
])
dnl ==========================================================================
dnl ==========================================================================
...
@@ -391,41 +203,16 @@ echo "
...
@@ -391,41 +203,16 @@ echo "
sysconfdir: ${SYSCONFDIR}
sysconfdir: ${SYSCONFDIR}
localstatedir: ${LOCALSTATEDIR}
localstatedir: ${LOCALSTATEDIR}
docdir: ${DOCDIR}
docdir: ${DOCDIR}
PAM prefix: ${PAM_PREFIX}
PAM module dir: ${PAM_MODULE_DIR}
compiler: ${CC}
compiler: ${CC}
cflags: ${CFLAGS}
cflags: ${CFLAGS}
cppflags: ${CPPFLAGS}
cppflags: ${CPPFLAGS}
DocBook: ${DOCBOOK}
xmlto: ${XMLTO}
user for PolicyKit: ${POLKIT_USER}
xmllint: ${XMLLINT}
group for PolicyKit: ${POLKIT_GROUP}
pidfile for polkitd: ${POLKITD_PID_FILE}
Distribution/OS: ${with_os_type}
PAM support: ${have_pam}
PAM file auth: ${PAM_FILE_INCLUDE_AUTH}
PAM file account: ${PAM_FILE_INCLUDE_ACCOUNT}
PAM file password: ${PAM_FILE_INCLUDE_PASSWORD}
PAM file session: ${PAM_FILE_INCLUDE_SESSION}
Maintainer mode: ${USE_MAINTAINER_MODE}
Maintainer mode: ${USE_MAINTAINER_MODE}
Building verbose mode: ${enable_verbose_mode}
Building verbose mode: ${enable_verbose_mode}
Building api docs: ${enable_gtk_doc}
Building api docs: ${enable_gtk_doc}
Building docs: ${enable_docbook_docs}
Building docs: ${enable_docbook_docs}
Building man pages: ${enable_man_pages}
"
"
# (distro-tweaks required)
if test x$with_os_type = xredhat; then
echo "NOTE: Red Hat style init scripts and pam file will be installed"
elif test x$with_os_type = xsuse; then
echo "NOTE: SUSE style init scripts and pam file will be installed"
else
echo "NOTE: You have to install init scripts yourself and tweak your own pam file"
fi
echo
echo "NOTE: Remember to create user ${POLKIT_USER} and group ${POLKIT_GROUP} before make install"
echo
doc/Makefile.am
View file @
5e55b4a2
EXTRA_DIST
=
TODO
EXTRA_DIST
=
TODO
SUBDIRS
=
api spec
SUBDIRS
=
api spec
man
clean-local
:
clean-local
:
rm
-f
*
~
rm
-f
*
~
doc/TODO
View file @
5e55b4a2
DONE
TODO: write me
- Write up a nice spec about how all this works since it can be a bit
confusing
- Refine the .privilege file format so e.g. user 'foo' is always
allowed to grant privilege 'bar' to other users. Also other stuff.
- write polkit-revoke-privilege
- make polkit-list-privileges and polkit-is-privileged display if a
privilege is granted permanently or temporary. Also display if it's
confined to a certain D-BUS connection.
- Factor out auth code in polkit-is-privileged into a GObject and put
it in a libpolkit-gobject library (since the interaction is pretty
hairy (see interaction diagram in polkitd/polkit-session.c) I will
not put this in libpolkit as I want to use the glib bindings and
these require the glib main loop => not suitable for Qt etc.)
PENDING
- Make polkitd emit signals on an interface such that privileged apps
can be notified when privileges are granted and revoked. Also
export other useful query operations.
- make D-BUS interface in general and polkit-grant-privilege in
particular capable of granting privs permanently
- write some man pages
- write libpolkit-gnome that GNOME apps can consume
- implement D-BUS interfaces suitable for a GUI privilege editor
- write more tests; audit code
- Maybe use straight vsyslog from pam-polkit-console.c if pam_vsyslog
is missing (as recommened by Frederic Peters <fpeters@entrouvert.com>)
doc/api/Makefile.am
View file @
5e55b4a2
## Process this file with automake to create Makefile.in.
## Process this file with automake to create Makefile.in.
AUTOMAKE_OPTIONS
=
1.7
SUBDIRS
=
libpolkit
# The name of the module.
DOC_MODULE
=
polkit
# The top-level SGML file.
DOC_MAIN_SGML_FILE
=
polkit-docs.xml
# Extra options to supply to gtkdoc-scan
#SCAN_OPTIONS=--deprecated-guards="CAIRO_DISABLE_DEPRECATED"
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR
=
../../libpolkit
# Used for dependencies
HFILE_GLOB
=
$(top_srcdir)
/libpolkit/
*
.h
CFILE_GLOB
=
$(top_srcdir)
/libpolkit/
*
.c
# Headers to ignore
IGNORE_HFILES
=
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
INCLUDES
=
GTKDOC_LIBS
=
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS
=
--sgml-mode
--output-format
=
xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS
=
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files
=
# Images to copy into HTML directory
HTML_IMAGES
=
# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS
=
include
$(top_srcdir)/gtk-doc.make
MAINTAINERCLEANFILES
=
\
*
~
\
Makefile.in
\
$(NULL)
doc/api/libpolkit/Makefile.am
0 → 100644
View file @
5e55b4a2
## Process this file with automake to create Makefile.in.
NULL
=
AUTOMAKE_OPTIONS
=
1.7
# The name of the module.
DOC_MODULE
=
libpolkit
# The top-level SGML file.
DOC_MAIN_SGML_FILE
=
libpolkit-docs.xml
# Extra options to supply to gtkdoc-scan
#SCAN_OPTIONS=--deprecated-guards="CAIRO_DISABLE_DEPRECATED"
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR
=
../../../libpolkit
# Used for dependencies
HFILE_GLOB
=
$(top_srcdir)
/libpolkit/
*
.h
CFILE_GLOB
=
$(top_srcdir)
/libpolkit/
*
.c
# Headers to ignore
IGNORE_HFILES
=
\
$(NULL)
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
INCLUDES
=
\
$(GLIB_CFLAGS)
\
-I
$(top_srcdir)
\
-I
$(top_builddir)
\
$(NULL)
GTKDOC_LIBS
=
\
$(GLIB_LIBS)
\
$(top_builddir)
/libpolkit/libpolkit.la
\
$(NULL)
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS
=
--sgml-mode
--output-format
=
xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS
=
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files
=
\
version.xml
\
$(NULL)
# Images to copy into HTML directory
HTML_IMAGES
=
# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS
=
MAINTAINERCLEANFILES
=
\
*
~
\
Makefile.in
\
libpolkit.types
\
libpolkit-
*
.txt
\
$(NULL)
include
$(top_srcdir)/gtk-doc.make
# Version information for marking the documentation
EXTRA_DIST
+=
version.xml.in
doc/api/libpolkit/libpolkit-docs.xml
0 → 100644
View file @
5e55b4a2
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<book
id=
"index"
xmlns:xi=
"http://www.w3.org/2003/XInclude"
>
<bookinfo>
<title>
PolicyKit Library Reference Manual
</title>
<releaseinfo>
Version
&version;
</releaseinfo>
<authorgroup>
<author>
<firstname>
David
</firstname>
<surname>
Zeuthen
</surname>
<affiliation>