Commit 5e55b4a2 authored by David Zeuthen's avatar David Zeuthen

reset project and remove all existing code

Some of the code, e.g. the daemon, will be brought back in other forms.
parent e97e945e
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.
......
## 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 = libpolkit.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 = libpolkit.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 *~
...@@ -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
This diff is collapsed.
EXTRA_DIST = TODO EXTRA_DIST = TODO
SUBDIRS = api spec SUBDIRS = api spec man
clean-local: clean-local:
rm -f *~ rm -f *~
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>)
## 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)
## 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
<?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>
<address>
<email>david@fubar.dk</email>
</address>
</affiliation>
</author>
</authorgroup>
<copyright>
<year>2007</year>
<holder>The PolicyKit Authors</holder>
</copyright>
<legalnotice>
<para>
Permission is granted to copy, distribute and/or modify this
document under the terms of the <citetitle>GNU Free
Documentation License</citetitle>, Version 1.1 or any later
version published by the Free Software Foundation with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. You may obtain a copy of the <citetitle>GNU Free
Documentation License</citetitle> from the Free Software
Foundation by visiting <ulink type="http"
url="http://www.fsf.org">their Web site</ulink> or by writing
to:
<address>
The Free Software Foundation, Inc.,
<street>59 Temple Place</street> - Suite 330,
<city>Boston</city>, <state>MA</state> <postcode>02111-1307</postcode>,
<country>USA</country>
</address>
</para>
<para>
Many of the names used by companies to distinguish their
products and services are claimed as trademarks. Where those
names appear in any GNOME documentation, and those trademarks
are made aware to the members of the GNOME Documentation
Project, the names have been printed in caps or initial caps.
</para>
</legalnotice>
</bookinfo>
<reference>
<title>API Reference</title>
<partintro>
<para>
This part presents the class and function reference for the
PolicyKit library.
</para>
</partintro>
<xi:include href="xml/libpolkit.xml"/>
</reference>
<index>
<title>Index</title>
</index>
<!-- License -->
<appendix id="license">
<title>License</title>
<para>
This library is free software; you can redistribute it and/or
modify it under the terms of the <citetitle>GNU General
Public License</citetitle> as published by the Free Software
Foundation; either version 2 of the License, or (at your option)
any later version.
</para>
<para>
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<citetitle>GNU Library General Public License</citetitle> for
more details.
</para>
<para>
You may obtain a copy of the <citetitle>GNU General
Public License</citetitle> from the Free Software Foundation by
visiting <ulink type="http" url="http://www.fsf.org">their Web
site</ulink> or by writing to:
<address>
Free Software Foundation, Inc.
<street>59 Temple Place</street> - Suite 330
<city>Boston</city>, <state>MA</state> <postcode>02111-1307</postcode>
<country>USA</country>
</address>
</para>
</appendix>
</book>
<?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">
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>PolicyKit Reference Manual</title>
</bookinfo>
<chapter>
<title>Client libraries</title>
<xi:include href="xml/libpolkit.xml"/>
<xi:include href="xml/libpolkit-grant.xml"/>
</chapter>
</book>
<!-- ##### SECTION Title ##### -->
libpolkit
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### ENUM LibPolKitResult ##### -->
<para>
</para>
@LIBPOLKIT_RESULT_OK:
@LIBPOLKIT_RESULT_ERROR:
@LIBPOLKIT_RESULT_INVALID_CONTEXT:
@LIBPOLKIT_RESULT_NOT_PRIVILEGED:
@LIBPOLKIT_RESULT_NO_SUCH_PRIVILEGE:
@LIBPOLKIT_RESULT_NO_SUCH_USER:
<!-- ##### STRUCT LibPolKitContext_s ##### -->
<para>
</para>
<!-- ##### TYPEDEF LibPolKitContext ##### -->
<para>
</para>
<!-- ##### FUNCTION libpolkit_new_context ##### -->
<para>
</para>
@connection:
@Returns:
<!-- ##### FUNCTION libpolkit_free_context ##### -->
<para>
</para>
@ctx:
@Returns:
<!-- ##### FUNCTION libpolkit_get_privilege_list ##### -->
<para>
</para>
@ctx:
@result:
@Returns:
<!-- ##### FUNCTION libpolkit_is_uid_allowed_for_privilege ##### -->
<para>
</para>
@ctx:
@system_bus_unique_name:
@user:
@privilege:
@resource:
@out_is_allowed:
@out_is_temporary:
@out_is_privileged_but_restricted_to_system_bus_unique_name:
@Returns:
<!-- ##### FUNCTION libpolkit_revoke_temporary_privilege ##### -->
<para>
</para>
@ctx:
@user:
@privilege:
@resource:
@result:
@Returns:
<!-- ##### FUNCTION libpolkit_get_allowed_resources_for_privilege_for_uid ##### -->
<para>
</para>
@ctx:
@user:
@privilege:
@resources:
@ions:
@num_non_temporary:
@Returns:
if MAN_PAGES_ENABLED
MAN_IN_FILES =
man_MANS =
endif # MAN_PAGES_ENABLED
EXTRA_DIST=$(man_MANS) $(MAN_IN_FILES)
clean-local:
rm -f *~
FIGURE_FILES =
FIGURE_FILES = \ SPEC_XML_EXTRA_FILES = \
polkit-arch.png polkit-spec-introduction.xml
if DOCBOOK_DOCS_ENABLED if DOCBOOK_DOCS_ENABLED
htmldocdir = $(DOCDIR)/spec htmldocdir = $(DOCDIR)/spec
htmldoc_DATA = polkit-spec.html $(FIGURE_FILES) htmldoc_DATA = polkit-spec.html $(FIGURE_FILES) docbook.css
polkit-spec.html : polkit-spec.xml $(FIGURE_FILES) polkit-spec.html : polkit-spec.xml.in $(FIGURE_FILES) $(SPEC_XML_EXTRA_FILES)
$(XMLTO) html-nochunks polkit-spec.xml ${XMLLINT} --xinclude polkit-spec.xml.in > polkit-spec.xml
$(XMLTO) html-nochunks -m config.xsl polkit-spec.xml
endif # DOCBOOK_DOCS_ENABLED
clean-local: clean-local:
rm -f *~ rm -f *~
rm -f polkit-spec.html polkit-spec.xml rm -f *.html
rm -f polkit-spec.xml
endif # DOCBOOK_DOCS_ENABLED
EXTRA_DIST = polkit-spec.html \ EXTRA_DIST = \
polkit-spec.xml.in \ polkit-spec.xml.in \
polkit-arch.dia \ config.xsl \
docbook.css \
$(SPEC_XML_EXTRA_FILES) \
$(FIGURE_FILES) $(FIGURE_FILES)
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:param name="html.stylesheet" select="'docbook.css'"/>
</xsl:stylesheet>
body {
font-family: luxi sans,sans-serif;
}
table {
border: solid 1pt;
border-collapse: collapse;
}
th {
background: #eeeeee;
padding: 5px;
}
td {
border: solid 1pt;
padding: 5px;
}
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<chapter id="introduction">
<title>Introduction</title>
<sect1>
<title>About</title>
<para>
TODO; write me!
</para>
</sect1>
</chapter>
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<book id="index">
<bookinfo>
<title>PolicyKit @VERSION@ Specification</title>
<releaseinfo>Version @VERSION@</releaseinfo>
<date>March 28th, 2007</date> <!-- Update this manually -->
<authorgroup>
<author>
<firstname>David</firstname>
<surname>Zeuthen</surname>
<affiliation>
<address>
<email>david@fubar.dk</email>
</address>
</affiliation>
</author>
</authorgroup>
</bookinfo>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="polkit-spec-introduction.xml" />
</book>
...@@ -4,7 +4,7 @@ libdir=@libdir@ ...@@ -4,7 +4,7 @@ libdir=@libdir@
includedir=@includedir@ includedir=@includedir@
Name: libpolkit Name: libpolkit
Description: library for querying and setting system-wide policy Description: library for querying system-wide policy
Version: @VERSION@ Version: @VERSION@
Requires: glib-2.0 Requires: glib-2.0
Libs: -L${libdir} -lpolkit Libs: -L${libdir} -lpolkit
......
...@@ -8,11 +8,9 @@ INCLUDES = \ ...@@ -8,11 +8,9 @@ INCLUDES = \
-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \ -DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
-DDBUS_API_SUBJECT_TO_CHANGE \ @GLIB_CFLAGS@
@GLIB_CFLAGS@ \
@DBUS_GLIB_CFLAGS@
lib_LTLIBRARIES=libpolkit.la libpolkit-grant.la lib_LTLIBRARIES=libpolkit.la
libpolkitincludedir=$(includedir)/libpolkit libpolkitincludedir=$(includedir)/libpolkit
...@@ -22,33 +20,10 @@ libpolkitinclude_HEADERS = \ ...@@ -22,33 +20,10 @@ libpolkitinclude_HEADERS = \
libpolkit_la_SOURCES = \ libpolkit_la_SOURCES = \
libpolkit.c libpolkit.h libpolkit.c libpolkit.h
libpolkit_la_LIBADD = @DBUS_GLIB_LIBS@ @GLIB_LIBS@