pax_global_header 0000666 0000000 0000000 00000000064 15235163047 0014520 g ustar 00root root 0000000 0000000 52 comment=e42f6d6fa203888b221f232247391ed7cf7f676b
ubuntu-lightdm-e42f6d6/ 0000775 0000000 0000000 00000000000 15235163047 0015112 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/.github/ 0000775 0000000 0000000 00000000000 15235163047 0016452 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/.github/dependabot.yaml 0000664 0000000 0000000 00000000271 15235163047 0021443 0 ustar 00root root 0000000 0000000 version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
actions-deps:
patterns:
- "*"
ubuntu-lightdm-e42f6d6/.github/workflows/ 0000775 0000000 0000000 00000000000 15235163047 0020507 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/.github/workflows/test.yaml 0000664 0000000 0000000 00000003122 15235163047 0022350 0 ustar 00root root 0000000 0000000 name: Test
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
image:
- name: ubuntu
tag: rolling
- name: fedora
tag: latest
runs-on: ubuntu-latest
container: ${{ matrix.image.name }}:${{ matrix.image.tag }}
steps:
- uses: actions/checkout@v7
- name: Install dependencies (Ubuntu)
if: matrix.image.name == 'ubuntu'
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends dbus gtk-doc-tools intltool libaudit-dev libgcrypt20-dev libgirepository1.0-dev libglib2.0-dev libpam0g-dev libtool libxcb1-dev libxdmcp-dev libxklavier-dev python3 python3-gi python-is-python3 qtbase5-dev qt6-base-dev valac yelp-tools
- name: Install dependencies (Fedora)
if: matrix.image.name == 'fedora'
run: |
dnf install -y audit-libs-devel dbus-daemon gcc gcc-c++ gobject-introspection-devel glib2-devel gtk-doc intltool libgcrypt-devel libtool libxcb-devel libxklavier-devel libXdmcp-devel make pam-devel python3-gobject qt5-qtbase-devel qt6-qtbase-devel redhat-rpm-config vala yelp-tools
- name: Build and test
run: |
./autogen.sh --disable-silent-rules --enable-gtk-doc
make
make check DEBUG=true || { cat tests/test-suite.log >&2; exit 1; }
- name: Upload Test Log
if: failure()
uses: actions/upload-artifact@v7
with:
name: Test Log ${{ matrix.image.name }} ${{ matrix.image.tag }}
path: tests/test-suite.log
ubuntu-lightdm-e42f6d6/CONTRIBUTING.md 0000664 0000000 0000000 00000000703 15235163047 0017343 0 ustar 00root root 0000000 0000000 We welcome improvements and bug fixes to LightDM. All changes should be proposed as [pull requests](https://github.com/ubuntu/lightdm/pulls).
We also invite you to join the [LightDM Matrix Room](https://matrix.to/#/#lightdm:matrix.org).
Substantial changes must have associated regression tests. If you are having trouble making a suitable test please propose your change anyway and we'll try and help you write a test or write a test if necessary.
ubuntu-lightdm-e42f6d6/COPYING.GPL3 0000664 0000000 0000000 00000104513 15235163047 0016655 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
ubuntu-lightdm-e42f6d6/COPYING.LGPL2 0000664 0000000 0000000 00000061447 15235163047 0017000 0 ustar 00root root 0000000 0000000 GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
Copyright (C)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
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 GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
ubuntu-lightdm-e42f6d6/COPYING.LGPL3 0000664 0000000 0000000 00000016743 15235163047 0017000 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
ubuntu-lightdm-e42f6d6/Makefile.am 0000664 0000000 0000000 00000000713 15235163047 0017147 0 ustar 00root root 0000000 0000000 ACLOCAL_AMFLAGS = -I m4
SUBDIRS = common liblightdm-gobject liblightdm-qt
if COMPILE_TESTS
SUBDIRS += tests
endif
SUBDIRS += data po src doc help
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc
EXTRA_DIST = \
autogen.sh \
lightdm.doap \
COPYING.GPL3 \
COPYING.LGPL2 \
COPYING.LGPL3 \
NEWS
DISTCLEANFILES = po/.intltool-merge-cache.lock
lightdm-${VERSION}.tar.xz.asc: lightdm-${VERSION}.tar.xz
gpg --armor --detach-sig --sign $<
ubuntu-lightdm-e42f6d6/NEWS 0000664 0000000 0000000 00000154344 15235163047 0015624 0 ustar 00root root 0000000 0000000 Overview of changes in lightdm 1.33.0
* Honor VNCServer's command in sanity check
* x-server-local: Correctly order command line arguments
* x-server-xvnc: Adjust default color depth to match upstream
TigerVNC
* Supress log errors for missing pam modules
* Don't disconnect signals on cancel before the session actually ends
* x-server: Avoid reusing the local X server if the hostname has
changed
* Initialize WaylandSessionPrivate.vt to -1 (for non-seat0 seat)
* Use systemd-logind to discover active session on non-seat0 seats
* Improve debug logging when seat_switch_to_greater fails
* Try activating an existing greeter before checking for switch
support
* Consolidate Seat.setup and Seat.start for readability
* Move supports_multi_session initialization to init
* Disable user switching if logind says it isn't supported
* vnc-server: Attempting binding to IPv6 first.
* Add hostname service dep to lightdm.service
* Fixed the issue that tty information would not be written to utmp
when logging into a Wayland session.
* Use setusercontext if available
* Add support for changing the home directory in PAM modules
* Return and use the potentially changed home directory from the
session child
* Implement logic to get FreeBSD ttyv device names.
* Allow Wayland sessions to start on seat0 on kernels with no VTs
* Create lightdm failure and success handler services
* Update lightdm.service RestartSec to 5s (from 15s)
* fix some memory leak in session_child_run
* Implement FreeBSD vt switching
* Code optimizations:
- Reduce UserItem class 72 to 64 bytes using align for 64-bit
platforms
- xserver, xdmcp-protocol: fix incorrect format types
- move const strlen call out of loop
* Add client library version for Qt6
* Fix and update tests
Overview of changes in lightdm 1.32.0
* Overwrite existing X authority files to avoid corruption
* Change logind-check-graphical default config value to true
* Block autologin if shell in nologin or false
* Fix failure if with greeters sending two login requests quickly.
* Drop Qt 4 support, it's been unsupported since 2015
* Fix lightdm_set_layout
* Improve method of determining a session is Wayland
* Don't call setenv with a NULL value - the behaviour is undefined
* Replace deprecated QAbstractItemModel::setRoleNames
* Move D-Bus conf file to $(datadir)/dbus-1/system.d
* Fix tests failing when compiled with --with-greeter-user
* Use Python 3 in tests
* Disable compiler optimizations for test programs
* Compilation fix for glibc 2.33
* Remove deprecated use of G_TYPE_INSTANCE_GET_PRIVATE, G_PARAM_PRIVATE
* Fix compile failure due to use of clearenv on FreeBSD
* Use a size_t to resolve a compile warning
* Fix DesktopManager typo in man page
Overview of changes in lightdm 1.30.0
* Add lightdm_user_get_is_locked ()
* Hide users with shell /bin/false
* Remove unity-system-compositor support (dead upstream)
* Fix dm-tool crash
* Update documentation
Overview of changes in lightdm 1.28.0
* Continue to shutdown session is removing X authority fails
* Set XDG_SEAT env variable in script hooks
* Fix small leak in XDMCP server
* liblightdm-qt: mark class PowerInterface as exported
* Fix one qt5 test being run instead of a qt4 one
* Remove use of deprecated g_type_class_add_private
* Modernize private data in objects
* Document XDG_SEAT_PATH in man page
* Fix install failing if link already exists
* Remove bashisms in configure.ac
Overview of changes in lightdm 1.26.0
* No changes from 1.25.2
Overview of changes in lightdm 1.25.2
* Fix incorrect use of ConsoleKit CanSuspend/Hibernate API
* Correctly install AccountsService interface file
* Fix build system to require C99
* Use standard format for arguments passed to qtchooser
Overview of changes in lightdm 1.25.1
* Fixes for VNC and XDMCP connections
* Use AccountsService extension system for extended greeter information
* Modernise code style
Overview of changes in lightdm 1.25.0
* Support moc being called moc-qt5 (e.g. Fedora)
* Fail configure if MOC can't be found
* Expose autologin-session as a hint to the greeter
* Fix timed autologins not using autologin-session when no session specified
Overview of changes in lightdm 1.24.0
* No changes from 1.22
Overview of changes in lightdm 1.22.0
* Allow guest sessions to talk to Mir (allowing unity8)
Overview of changes in lightdm 1.21.5
* Fix logic that checked if a session was being stopped.
This fixes a race condition that could cause logging into an existing
session from a greeter to not return to that session.
Overview of changes in lightdm 1.21.4
* Use power management functions from ConsoleKit2 if available.
* Correctly pass return value from sessions to LightDM.
* Retry VT_WAITACTIVE if we get EINTR.
* Ignore SIGHUP by default.
* Use SA_RESTART with SIGPIPE.
* liblightdm-qt: Use liblightdm-gobject power methods instead of
re-implementing in Qt.
Overview of changes in lightdm 1.21.3
* Fix crashes introduced in 1.21.2 due to environment variable changes
* Fix incorrect unref in XDMCP server code
* Fix logging warning
Overview of changes in lightdm 1.21.2
* Use SA_RESTART on signals so we don't get interrupted reads
* Use logind to terminate greeter sessions if it is available
* Load greeters from XDG_DATA_DIRS instead of compile time value
* Allow D-Bus interface to be disabled
* Always pass through LD_PRELOAD, LD_LIBRARY_PATH and PATH to
sessions/display servers
Overview of changes in lightdm 1.21.1
* Fix greeters crashing with unknown configuration keys (regression from
1.21.0)
* Add an API version to the greeter-daemon protocol for future enhancements
* More regression tests
Overview of changes in lightdm 1.21.0
* Add liblightdm functions for getting OS release information and the
message of the day.
* Warn if we find unknown keys in configuration.
* Fix .profile errors not showing in .xsession-errors log.
* Remove duplicate Qt property in liblightdm.
* Fix and improve liblightdm API documentation.
* Minor GIR annotation fixes.
Overview of changes in lightdm 1.20.0
* Use stable version number (no other changes)
Overview of changes in lightdm 1.19.5
* Fix errors in documentation generation
* Improve documentation
* Fix guest AppArmor profile to allow guest sessions more access to the
upstart session socket
* Fix small memory leak in liblightdm-gobject keyboard layout code
Overview of changes in lightdm 1.19.4
* Fix various issues in new in-session greeter code
* Fix user list memory management exposed by use of in-session greeters
* Fix some spurious warnings in the log
Overview of changes in lightdm 1.19.3
* Fix in-session greeters not working for greeter logins
Overview of changes in lightdm 1.19.2
* Add support for greeters running inside sessions. This is enabled by
setting X-LightDM-Allow-Greeter inside the session .desktop file.
The session can then use liblightdm to connect one greeter to the
daemon. The communication is done using a socket
(/var/run/lightdm//greeter-socket) that is accessible to any
process run by that user. Consider controlling access to this socket
using a MAC system such as AppArmor.
* Report errors for all liblightdm methods. This will require existing
greeters to update their API usage. The ABI is unchanged.
* Handle EAGAIN correctly when daemons communicate with the daemon.
* Drop support for mir-container sessions - no-one ever used these.
Overview of changes in lightdm 1.19.1
* Rename "xlocal" seat type to "local". Using "xlocal" will continue to work
but report a warning.
* Fix memory leaks
* Fix uninitialized memory errors
* Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor
socket to sessions. This used to work but no longer works in Mir 0.21
* Allow XMir to run on the xlocal seat using the new x-server-backend=mir
option
* Use only a single compositor on local seats
* Fix Mir greeter log filename having "(null)" in the name
* Copy fcitx/mozc rules so session works when these aren't installed
* Revert lxsession change - it caused the AppArmor to fail to compile
Overview of changes in lightdm 1.19.0
* Use /dev/tty0 instead of /dev/console for VT operations
* Don't quit on SIGUSR1, SIGUSR2 or SIGHUP
* Improve XDMCP IPv6 address selection
* Set XDMCP hostname field in to system hostname or configured value
* Allow fcitx and mozc to run in guest session
* Fix lxsession running in guest sessiono
* Drop support for legacy XMir
* Fix g_spawn compiler warning
Overview of changes in lightdm 1.18.0
* Small documentation fixes
Overview of changes in lightdm 1.17.6
* Don't write $DISPLAY into tty line in utmp/btmp.
Overview of changes in lightdm 1.17.5
* Set XDG_RUNTIME_DIR for ConsoleKit sessions. This is a recent change in
ConsoleKit2.
Overview of changes in lightdm 1.17.4
* Add support for g_autoptr and liblightdm-gobject
* Fix dm-tool add-local-seat not working because LightDM is trying to
connect with TCP/IP
Overview of changes in lightdm 1.17.3
* Don't enable the hardware cursor in Unity System Compositor anymore.
Unity 8 now correctly provides its own cursor and other shells should too
Overview of changes in lightdm 1.17.2
* Handle XDMCP Request packet with no addresses.
* Don't start LightDM if the XDMCP server is configured with a key that
doesn't exist.
* Add IP addresses to XDMCP log messages.
* Refactor XDMCP error handling.
* Add more XDMCP tests.
Overview of changes in lightdm 1.17.1
* Add a backup-logs option that can be used to disable existing logging
files having a .old suffix added to them.
* Add LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEASUREMENT and
LC_IDENTIFICATION variables to the list of inherited locale variables.
* Implement XDMCP ForwardQuery.
* Fix small memory leak in XDMCP logging code.
Overview of changes in lightdm 1.17.0
* Disable log backups - this interferes with logrotate.
* Support using libaudit to generate audit events.
* Handle trailing whitespace on boolean values in configuration.
* Update example configuration to more correctly match allowed options.
* Fix unnecessary X server from being launched when locking seats.
* Check the version of the X server we are running so we correctly pass
-listen tcp when required.
* Allow reading /proc//net/dev from within a guest session.
* Allow guest sessions to write in /{,var/}run/screen folder.
* Update guest-session AppArmor profile to be suitable for openSUSE.
* Fix apparmor profiles for running Chromium in guest sessions.
* Fix configure failing without Vala installed.
Overview of changes in lightdm 1.16.0
* Update default configuration better explaining the seat configuration name
matching and dropping references to the obsolete [SeatDefaults] section
Overview of changes in lightdm 1.15.3
* Drop Xorg option -sharevts. It's no longer required for non-seat0 X
servers since xorg-server release 1.16.
Overview of changes in lightdm 1.15.2
* Support Wayland sessions.
* Implement autologin-session option.
* Generate Vala bindings from GIR instead of manually writing them. This
fixes some small bugs in both the Vala and GIR bindings.
* Don't remove autotools generated files in distclean.
Overview of changes in lightdm 1.15.1
* Fix default X server command set to XMir in 1.15.0.
* Internally merge the [SeatDefaults] and [Seat:*] sections together. The
previous method meant configuration snippets using a mix of old and new
naming would not correctly override eachother.
* Use IP address of XDMCP requests to contact X server if available.
* Add an option for XDMCP and VNC servers to only listen on one address.
* Fix configuration file warnings so they go to the log, not stderr.
* Warn if deprecated options logind-load-seats or xdg-seat are in
configuration.
* Improve IP addresses in XDMCP log messages.
* Fix typo in dm-tool man page.
Overview of changes in lightdm 1.15.0
* Deprecate [SeatDefaults] in favour of [Seat:*]
* Use new Xmir binary when running X under Unity System Compositor
Overview of changes in lightdm 1.14.0
* Initialize file descriptor handles so we don't attempt to close stdin by
accident.
* Fix small errors detected by scan-build (clang).
Overview of changes in lightdm 1.13.2
* Fix pipe file descriptor leak for each greeter session.
* Support active session changing via logind.
* Don't allow liblightdm-gobject to be disabled. It is required for
liblightdm-qt and the tests so it's not worth supporting builds without
it.
* Add bash autocompletion support
Overview of changes in lightdm 1.13.1
* Don't attempt generate D-Bus seat/session removal signals on shutdown.
* Add missing method QLightDM::Greeter::cancelAutologin
Overview of changes in lightdm 1.13.0
* Fix crash when having configuration keys defined in multiple places
* Fix pipe file descriptor leak for each session login / authentication
* Use correct syntax for DesktopNames key in session files
* Match seat configuration with globbing
* Allow user switching in multi-seat until bug stopping greeter showing on
logout is fixed
* Disable log message when AccountsService users change
* Update AppArmor scripts, requires AppArmor 2.9
* Update tests to run better on servers
Overview of changes in lightdm 1.12.0
* Fix assumption that the display server is X when running scripts.
* Don't access .dmrc files until information from these files is required.
Overview of changes in lightdm 1.11.9
* Don't check the logind CanGraphical seat property unless
login-check-graphical option is set to true. There are too many cases of
drivers that don't set the appropriate flags for this feature to work.
* Make socket writing code used between greeter and daemon more robust to
errors.
* Fix small memory leaks.
* Improve logging messages.
* Test improvements.
Overview of changes in lightdm 1.11.8
* Rework logind code that gets session ID. The previous method was racy
and a change in lightdm 1.11.7 led to a lockup when this race occurred.
* Handle CanGraphical property on logind seats
Overview of changes in lightdm 1.11.7
* Use logind to provide the list of seats to use. Deprecate the old method
of manually defining seats.
* Add --show-config option that shows combined configuration.
* Drop the surfaceflinger seat type. This was a temporary solution while
Ubuntu Phone was migrating to Mir.
Overview of changes in lightdm 1.11.6
* Add a seat option 'allow-user-switching' that can disable all user
switching for that seat
* Add a new session type 'mir-container' that allows the session to run
inside a custom system compositor
* Only seat0 takes VT from Plymouth
* Removed unused GAsyncResultIface.is_tagged as this attribute was not
available in earlier versions of Glib I/O.
* Abort autogen if yelp-tools not installed
* Return correct errors for D-Bus calls
Overview of changes in lightdm 1.11.5
* Make PAM services configurable
Overview of changes in lightdm 1.11.4
* Do timed autologin each time you are returned to the greeter
* Fix tests failing with Qt 5.3 due to it checking getuid/geteuid which we are faking
* dm-tool: Warn if trying to switch to user without username
Overview of changes in lightdm 1.11.3
* Fix Mir sessions broken with unity-system-compositor 0.3.
* Add back Vala bindings for LightDM.Greeter.connect_sync - just mark as
deprecated.
* Put unity-system-compositor's mir_socket under /run rather than /tmp.
* Fix building with clang (3.5) and -Werror.
* Correct section name in default users.conf file.
Overview of changes in lightdm 1.11.2
* Add liblightdm method to get user UID
* DBus-activate logind
* Check for libgcrypt at configure time
Overview of changes in lightdm 1.11.1
* Allow greeters to remain running to reduce startup time when switching to a
greeter
* Add asynchronous methods to liblightdm
Overview of changes in lightdm 1.11.0
* When switching to an existing session refresh PAM credentials and end
session cleanly so no resources leak.
* Support new standard DesktopNames field in session files
* Set XDG_SESSION_TYPE and XDG_SESSION_DESKTOP as used by systemd
* Emit DBus PropertiesChanged when Sessions/Seats properties change. Also
add SessionAdded/SessionRemoved signals to Seat interface
Overview of changes in lightdm 1.10.0
* Fix return value for Vala bindings to Greeter.start_session_sync
* Fix logging when failing to find session
Overview of changes in lightdm 1.9.15
* Update the lightdm AppArmor abstraction to allow the guest session to
start when AppArmor is mediating signals and ptrace and fix a minor, but
noisy, denial when applications attempt to read /proc//stat.
Overview of changes in lightdm 1.9.14
* Pass --enable-hardware-greeter to unity-system-compositor for Mir sessions
on xlocal seats
Overview of changes in lightdm 1.9.13
* Handle not getting an X connection when attempting to get X layouts.
* Read config data from both XDG_DATA_DIRS and XDG_CONFIG_DIRS.
Overview of changes in lightdm 1.9.12
* Ensure X authority is written before X server is started
* Activate after unlocking a logind session
Overview of changes in lightdm 1.9.11
* Don't use g_hash_table_get_keys_as_array, it's a glib 2.40 feature
Overview of changes in lightdm 1.9.10
* Honour session type requested by greeter for guest sessions
* Log to wtmp and btmp.
* Implement guest-session config option
Overview of changes in lightdm 1.9.9
* Handle signals being received in child processes instead of treating them
like they are received in the daemon.
* Set utmp ut_line to the display name (i.e. :0) to match what other
programs expect (e.g. 'w').
* Fix lightdm_greeter_ensure_shared_data_dir_sync returning the wrong value.
* Fix shared data tests so you can run test suite without root again.
* Be extra careful not to call any non thread safe function after a fork.
* Fix some small memory leaks detected by valgrind.
* Fix process shutdown code to stop generating confusing warnings
* Fix more double removal of source IDs.
* Test improvements.
Overview of changes in lightdm 1.9.8
* Add support for shared user data directories between the greeter and user sessions.
* Refactor LightDMUser and User classes to use the same code internally.
Overview of changes in lightdm 1.9.7
* Correctly invoke PAM to change authentication token.
* Make xdg-seat a core property of a seat and always pass it to X servers.
* Qt bindings: properly hand over prompt and message type.
* Add warning flags where they are missing and fix the resulting warnings.
Overview of changes in lightdm 1.9.6
* Support Mir sessions in xlocal seats by starting a unity system compositor
for each session.
* Add --screen and --fullscreen options to "dm-tool add-nested-seat"
* Don't try to compile liblightdm-qt if liblightdm-gobject will not be
compiled.
* Stop greeters warning if sessions directories not present or lightdm.conf
doesn't exist - this is valid.
* Fix log name for Mir display servers
* Fix double removal of source IDs
Overview of changes in lightdm 1.9.5
* In the unity seat, if we don't have proper VT support, fake VT 0 instead
of a real VT number. This matches what logind expects.
Overview of changes in lightdm 1.9.4
* Fix issue where VTs are double used when switching sessions.
* Remove lightdm-set-defaults and gdmflexiserver.
* Add new ability to specify a list of seat types to try, rather than just
one.
* Allow Mir sessions in the surfaceflinger seat.
* Rename the guest session wrapper to have a simpler name.
* Make sure sessions are associated with the display server before starting
them.
* Add a dm-tool man page.
Overview of changes in lightdm 1.9.3
* Don't pass system user accounts from AccountsService to greeters.
* Fix crash if switching to greeter and it isn't installed.
Overview of changes in lightdm 1.9.2
* Implement missing guest-wrapper functionality and enable it for Ubuntu.
* Update AppArmor scripts to work in Ubuntu 13.10.
Overview of changes in lightdm 1.9.1
* Correctly set $XDG_SESSION_CLASS for greeters. This was regressed in 1.7.5
for ConsoleKit and was never passed to logind. logind/ConsoleKit treat
greeter sessions without this set as user sessions. This causes greeters
to show the lightdm user able to be logged in with.
* Set $USER when running the session-setup-script. This is a regression from
1.7.5.
* Fix notification of sessions being logged out. This is a regression from
1.7.5 and caused greeters to show sessions logged in after they had been
logged out.
* Refactor liblightdm user scanning to be simpler and more reliable. This
fixes bugs where some properties wouldn't be updated when they changed in
accounts service.
* Add support for a "display-stopped-script" field in lightdm.conf. The
"display-stopped-script" field allows us to run a script right after
stopping the display server.
* Allow dm-tool to run outside of a session if it doesn't need to be.
* Set $MIR_SERVER_NAME to assign a name to launched sessions. Also use a
"greeter-" prefix for greeter sessions for the benefit of
unity-system-compositor.
Overview of changes in lightdm 1.9.0
* Fix crash when starting with existing X servers. This was introduced in
rev 1651 (lightdm 1.7.0).
* Fix crash where Process objects are accessed after unref
Overview of changes in lightdm 1.8.0
* Add regression test for corrupt X authority files.
Overview of changes in lightdm 1.7.18
* Set session environment variables for guest sessions (1.7 regression).
* Don't fail writing X authority if reading it had an error.
* Update environment variables that we pass to Mir.
Overview of changes in lightdm 1.7.17
* surfaceflinger: Set XDG_VTNR=0 if VTs are not available
* Allow compiling of liblightdm-qt without liblightdm-gobject
* Add missing documentation for xremote seat options.
Overview of changes in lightdm 1.7.16
* Fix ConsoleKit support broken in 1.7.5
* Fix --test-mode
* Add support for running Surfaceflinger sessions
Overview of changes in lightdm 1.7.15
* Set XDG_VTNR=1 as a fallback if using SeatUnity without a functioning
compositor or working VT switching, so that logind will recognize the VT
as active.
Overview of changes in lightdm 1.7.14
* Correctly set permissions on Xauthority file.
Overview of changes in lightdm 1.7.13
* Correctly set $XDG_CURRENT_DESKTOP for non-autologin sessions
* Fix overallocation of array for strings from greeter.
* Fix truncation writing card32 in XDMCP server.
Overview of changes in lightdm 1.7.12
* Add xdg-seat config setting
* Notify Unity System Compositor of the session being authenticated
Overview of changes in lightdm 1.7.11
* Fix crash when greeter quits due to read watch not being removed
* Correctly setup Unity System Compositor environment
* Improve log messages
Overview of changes in lightdm 1.7.10
* Fix session locking broken in 1.7.5
* Load lightdm.conf after lightdm.conf.d/*.conf
* Also support loading config from /usr/share
* When switching sessions show a greeter if authentication required
* Set $XDG_CURRENT_DESKTOP if specified in the xsession file
* Change logging prefixes to make it easier to troubleshoot multiseat setups
* Bring Ubuntu packaging in-tree
Overview of changes in lightdm 1.7.9
* Correctly set XDG_VTNR for unity sessions that are not autologin.
Overview of changes in lightdm 1.7.8
* Add support for Mir sessions and greeters.
* Set XDG_VTNR for unity sessions.
* Fix desktop-session-start upstart signal not being emitted since 1.7.5.
* Fix greeter log broken in 1.7.5.
Overview of changes in lightdm 1.7.7
* Fix uninitialized pointer introduced in 1.7.3
* Enable compile warnings and fix code generating warnings
Overview of changes in lightdm 1.7.6
* Restore greeter hints that were regressed in 1.7.5.
* Don't run greeters through session wrapper - regression in 1.7.5
Overview of changes in lightdm 1.7.5
* Quit Plymouth correctly when using the unity seat type
* Release the VT when the system compositor fails to start
* Load sessions and greeters from /usr/share/lightdm/sessions and
/usr/share/lightdm/greeters. The existing directories are checked
if the sessions are not in these directories.
* Refactor the Display class so that it merges with the Seat class
* Support running the greeter and session in different display servers
instead of re-using the same one during a login.
* Add more regression tests
* Documentation fixes
Overview of changes in lightdm 1.7.4
* Set XDG_SEAT and XDG_VTNR environment variables.
* Add initial support for Unity (i.e. Mir based) seats.
* Add a greeter wrapper option.
Overview of changes in lightdm 1.7.3
* Load configuration from /etc/lightdm/lightdm.conf.d.
* Fix compile warnings
* Fix tests not running from install directory inside checkout.
Overview of changes in lightdm 1.7.2
* Fix incorrectly distributed guest-session apparmor data
Overview of changes in lightdm 1.7.1
* Fix .pc file for liblightdm-qt5-3
* Add a new option "autologin-in-background" which lets an autologin happen
in a second display while still showing the greeter.
* Stop if fail to create default seat
* Add option to set seat type in lightdm-set-defaults
* Stop using g_file_set_contents - it can leave intermediate files around
* Make tests work without installing them
* Fix distcheck
Overview of changes in lightdm 1.7.0
* Use logind instead of ConsoleKit if it is available
* Use Q_SLOTS and Q_SIGNALS instead of slots and signals.
* Ignore stale X server locks
* Pass through system locale or set locale from AccountsService/.dmrc
* Fix bug where seat failure before D-Bus acquired would not stop daemon
Overview of changes in lightdm 1.6.0
* Allow VNC command to be specified in lightdm.conf
* Register enums with QObject meta type system.
Overview of changes in lightdm 1.5.3
* Fix build with gobject-introspection 1.35.9
* Fix authentication cancel regression caused in 1.5.2
Overview of changes in lightdm 1.5.2
* Fix stale X server being left behind when using LockSession D-Bus API
* Adjust AppArmor profile to also work with logind
* Don't use GIO to access X authority files - it uses GVFS which is
unnecessary overhead/complexity
* Handle over/underflows when reading from greeter
* Improve warning message when XDMCP packet has length mismatch
* Only report test command line if it fails
* Add more regression tests
Overview of changes in lightdm 1.5.1
* QLightDM: Add Qt5 version of the library: liblightdm-qt5-2
* QLightDM: Add some missing role names in UsersModel
* QLightDM: Add a backgroundPath role to UsersModel
* QLightDM: Fix potential crash in QLightDM::UsersModel closedown.
* Improve guest session apparmor
* Run each test in its own /tmp dir so they can't interfere with eachother
* Fix script hooks no longer working with latest glib
* Fix display clean up code
Overview of changes in lightdm 1.5.0
* Add man page for lightdm-set-defaults
* Use xzip for distribution, don't distribute old metadata
* Correctly check if display is active when session quits
* Relicense liblightdm to LGPL-2/LGPL-3 so GPL-2 code can link against it
* Selectively lock memory rather than calling mlockall for main daemon
Overview of changes in lightdm 1.4.1
* Fix autologin PAM configuration
Overview of changes in lightdm 1.4.0
* Correctly implement and test autologin timeouts
* Add greeter-show-remote-login hint
* Correctly annotate enums in vapi file
* QLightDM: Add default constructor to Qt power interface
* QLightDM: Expose image path in UserModel
* QLightDM: Add parameter to session model to show either local or remote
sessions
* Fix race conditions in tests
Overview of changes in lightdm 1.3.3
* Add a new remote session type. These sessions create a temporary local
account and authenticate against a remote server. The session is an
application that accesses that remote session (e.g. VNC, RDP etc)
* Support multiple simultaneous PAM prompts
* Set utmp ut_host field to the X display address
* Correctly reap unused authentication sessions
Overview of changes in lightdm 1.3.2
* Handle clearenv() not being defined
* Fix compilation with GCC 4.7
* Expose remaining properties in QLightDM::Greeter
* Fix utmp records being written before child process created
Overview of changes in lightdm 1.3.1
* Fix wrapper path in AppArmor profile (broken since 1.1.1)
* Add show-manual-login and allow-guest options to lightdm-set-defaults
* Don't set PAM_XDISPLAY or PAM_XAUTHDATA if not supported
* Add lock-memory option, enabled by default, to prevent paging memory
to disk.
* Write utmp records for sessions
* Install PAM configuration
* Run greeters inside the "lightdm-greeter" PAM service
* Handle setresgid and setresuid not being available
* Use xsession directory from lightdm.conf in liblightdm
Overview of changes in lightdm 1.2.0
* Backup .xsession-errors on login
* Handle failures in pam_setcred
* Open log files in append mode
* Add extra checks in liblightdm so that it doesn't send invalid messages
to the daemon
* Fix gdmflexiserver not being added to the path (broken since 1.1.4)
* Fix PAM conversations after authentication from locking up sessions
* Fix PAM informational messages locking up autologin
* Change XDMCP manage timeout from 10ms to 126s (maximum specified in the
XDMCP specification)
Overview of changes in lightdm 1.1.9
* Add --show-users/--hide-users to lightdm-set-defaults
* Call initgroups before pam_setcred - this allows pam_setcred to change
group membership correctly
Overview of changes in lightdm 1.1.8
* Handle PAM interactions that have more than one message in one callback
Overview of changes in lightdm 1.1.7
* Add a seat option greeter-allow-guest which controls if the greeter should
provide an option to access the guest account.
* Add a seat option greeter-show-manual-login which hints to a greeter if it
should show a manual username entry if a user list is already present.
Overview of changes in lightdm 1.1.6
* Fix session wrapper working the same as it did in 1.1.3
Overview of changes in lightdm 1.1.5
* Stop file descriptors leaking into the session processes
Overview of changes in lightdm 1.1.4
* Change session directory once user permissions are set so it works
on NFS filesystems that don't allow root to access files.
* Restructure session code so the PAM authentication is run in its
own process.
* Set PAM_XDISPLAY and PAM_XAUTHDATA pam items
* Don't send session stdout to .xsession-errors
* Fix Qt bindings crash when removing a user
Overview of changes in lightdm 1.1.3
* Actually return the system default keyboard layout, not just 'us'
* Add keyboard layout variants to list of keyboard layouts
* Check accountsservice as well as .dmrc for users' layouts
* Add lightdm_user_get_layouts() to query the configured list of layouts
on a per-user basis
* Add Lock D-Bus method that locks the seat and provides a hint to the
greeter to be in lock mode.
* Automatically lock sessions when switching away from them
* Add a has-messages property to liblightdm
* Add regression tests for PAM modules changing usernames
* Don't use g_key_file_unref, it requires glib 2.32
Overview of changes in lightdm 1.1.2
* Add regression tests for getting the user language and layout
* Stop accidentally distributing libsystem
* Fix introspection bindings not containing any methods
* lightdm-set-defaults can now set the autologin user
* Add Python greeter regression tests (representative of all introspection
based greeters)
* Wait for the VT to become active when switching to avoid a suspected
race condition somewhere between LightDM, X, ConsoleKit and the kernel.
* Stop lightdm_greeter_start_session_sync() blocking on success.
Overview of changes in lightdm 1.1.1
* Add a --disable-tests option
* Add note to AUTHORS file where to find author list
* Update build system to find moc/uic
* Fix non-distributed tests/src/lightdm-session
* Fix X sessions with arguments in Exec not working
* Use previous session for automatic login or if greeter does not request
one.
* Set default resolution of VNC to 1024x768, add settings for width, height,
depth into lightdm.conf.
* AppArmor profile: Fix broken gnome-keyring and dbus/gwibber, and quiesce
annoying kernel audit messages for privileges that we definitively do not
want to grant.
* Set LOGNAME environment variable
* Don't set USERNAME environment variable - this is not specified in POSIX,
please report if this causes any major problems.
* Drop privileges when reading ~/.dmrc
* Move the GTK+ and Qt greeters into their own projects
* Fix crash when quitting with newer GLib
* Fix crash calling lightdm_get_layout
* Support for reading users' backgrounds from Accounts Service
* Fix --debug working with new glib
* Support PAM requesting a change of password
* Update build system to work with automake 1.11.2
* Run tests inside their own system D-Bus, simulating ConsoleKit and
AccountsService
* Add regression test for users that have their home directory created after
authentication.
* Move lightdm-guest-session from libexec to pkglibexec directory
Overview of changes in lightdm 1.1.0
* Remove GetSeatForCookie and GetSessionForCookie D-Bus methods
* Switching to a user without a password bypasses the greeter
* Use LD_PRELOAD to intercept system calls for testing
* Removed the --passwd-file option as not required for testing anymore
* Rename test-xserver to X and remove --xserver-command option
* Make a test session wrapper and remove --session-wrapper option
* Remove unused --user-session, --greeter-session, --minimum-vt,
--minimum-display-number options
* Use 'default' as the default greeter (make a symlink)
* GTK greeter now initializes i18n
* GTK greeter now remembers last user
* Start authentication for automatically selected user in GTK greeter
* Don't resize GTK greeter on each click
* Start authentication when scrolling through GTK greeter entries
* Link liblightdm-qt against QtGui
* Fix liblightdm-qt crashing when face images are installed
* Set correct permissions on session log files
* Introduce a lightdm-guest-session-wrapper session command which MAC
systems like AppArmor and SELinux can use for attaching a restrictive
policy to guest sessions.
* Provide an AppArmor profile for guest session lockdown.
* Fix daemon from blocking if Accounts Service does not exist
* Fix greeter log file not being written
* Don't set LANG environment variable if using Accounts Service.
* Fix gdmflexiserver not working due to it not being in PATH
* Don't authenticate the greeter user
* Allow greeters to be disabled in configure flags
* Fix over allocation of read buffer in greeter protocol
* Make sure objects are cleaned up on exit
* Fix minor memory leaks
* Fix reference counting issue in ConsoleKit code
* Fix --enable-gtk-greeter=yes not working
Overview of changes in lightdm 1.0.0
* Explicitly grab keyboard focus in GTK greeter
* Fix removed power and a11y menu items in GTK greeter
* Put system binary directory into path when running in test mode
* Call pam_getenvlist after pam_setcred
Overview of changes in lightdm 0.9.8
* GetSeatForCookie and GetSessionForCookie are now deprecated. They
remain for now but use the XDG_SEAT_PATH and XDG_SESSION_PATH
environment variables instead.
* Change log filenames to be unique across different display types.
* Fix up script hooks, add regression tests for them
* Complete removal of X code from the core of LightDM, so it can better
support various display types
* Add ability to set the language of a user from the greeter
* Set LANG variable based on the user language
* Add language selector into GTK greeter (disabled by default)
* Allow TCP/IP connections if xserver-allow-tcp is true
* Allow lightdm --version to be run as non-root
* Automatically respond to PAM messages without prompts
* Create 'AddLocalXSeat' D-Bus method, and require root to use 'AddSeat'
* Fix multi-seat configuration picking the same display number
* Use correct D-Bus and power interface in liblightdm-qt
* Run pam_setcred inside the session process so pam_group works
* Make sure one session is always selected in the GTK greeter
Overview of changes in lightdm 0.9.7
* Set PAM_TTY to the display name, not the tty device
Overview of changes in lightdm 0.9.6
* Only unlock displays if switched to from greeter
* Make log file not system readable
* Write ~/.Xauthority inside the session process so it cannot be hijacked
* Set PAM_TTY and PAM_XDISPLAY when opening PAM session
* Add VNC server support
* Do not write ~/.dmrc and ~/.Xauthority as root. [CVE-2011-3349]
Overview of changes in lightdm 0.9.5
* Use accounts service in the daemon if it is available
* Correctly load seat type in multi seat configuration
* Add display-setup, session-setup and session-cleanup scripting hooks
* Fix cancel button in GTK greeter
* Fix line through GTK greeter menu items
* Exit daemon if a seat fails which has exit-on-failure set to true
* Add HasGuestAccount property to seat D-Bus interface
* Fix XDMCP authorization
* Update man file
Overview of changes in lightdm 0.9.4
* lightdm-set-defaults enables tweaking the default session and chosen
greeter for lightdm. This is useful for derivatives waiting to not ship
the whole configuration file of lightdm
* Fix crash in GTK+ greeter when a user is added
* Move xsessions-directory and xgreeters-directory from [SeatDefaults] to
[LightDM]. This is a configuration break, but making it on the assumption
that these settings are not likely to have been overridden.
* Fix fallback from org.freedesktop.Accounts to passwd format
* Fix duplicate user entries being shown when using passwd file
* Add AddSeat D-Bus method for adding dynamic seats
* Added a dm-tool program that allows user switching and adding seats
* Allow remote X servers, e.g. launched using dm-tool add-nested-seat
* Fix bug where sessions were started when the greeter quit and the user
hadn't been authorized.
* Fix bug where sessions used the seat bus name
* Don't allow autologin-username to be set to empty
* Fix bug where PAM session was not opened before writing to home directory
* Fix crash when failing to write X authority
Overview of changes in lightdm 0.9.3
* Unlock ConsoleKit sessions when switching to them
* Add a gdmflexiserver binary that provides backwards compatibility with
existing sessions
* Set XDG_SEAT_PATH and XDG_SESSION_PATH environment variables for sessions.
* Always set XAUTHORITY environment variable so sudo keeps accessing the
correct X authority.
* Connect up lightdm_user_get_logged_in in liblightdm-gobject
* Ignore sessions that fail TryExec or are hidden
* Add missing home_directory User property missing in Vala bindings
Overview of changes in lightdm 0.9.2
* Fix annotation and Vala bindings for getting the UserList singleton
* Fix GTK+ greeter error label not being shown
* Don't set SIGQUIT to ignore in child processes
* Reworked the PAM code as ecryptfs users weren't able to log in. They
can now but not sure what changed to fix that!?
Overview of changes in lightdm 0.9.1
* Fix up translation build system
* Add a --with-greeter-user configure option
* Fix greeter-user configuration not being used
* Abort greeter if attempted to be run as root and greeter-user set
* Fix setting session in GTK+ greeter
Overview of changes in lightdm 0.9.0
* Fix invalid XAUTHORITY variable being set for second X server.
* Fix bug where switching users created X servers without VTs
* Release a VT when the X server on it stops
* Greeters are now just standard X sessions that are stored in
/usr/share/xgreeters.
* Binaries now installed in /usr/sbin
* Drop most of the configure options, they aren't necessary
* Config changes:
- Major reorginisation of configuration to make it easier to configure and
understand. Users should set [SeatDefaults] section with settings for
all seats, and can override each setting in a per seat configuration.
- Default seats are now specified using a [Seat:] section. If no seats
are specified then one is started. This can be overridden by setting
start-default-seat=false in [LightDM].
- Support setting autologin user to guest account
- Split the user accounts configuration into /etc/lightdm/users.conf so the
main config can be private.
- The default user session is now "default". Distributions should put a
symlink to their chosen default or set one in lightdm.conf.
- XDMCP keys now stored in keys.conf
* liblightdm API changes:
- Both libraries are now version 1 and have API and ABI guarantees.
- Face images are now local paths not URIs
- liblightdm-gobject now uses lightdm_ prefix instead of ldm_
- Non-greeter functions are now moved out of the Greeter class
- connect_to_server() is now called connect_sync and blocks until
completion.
- start_session() is now called start_session_sync and blocks until
completion. The quit signal is removed, and the greeter should quit if
this method returns TRUE.
- login() is now called authenticate()
- Greeters now have hints instead of configuration (greeters should load their
own configuration from /etc/lightdm if they need it).
- liblightdm-gobject uses AccountsService if it is available
- Added regression tests for liblightdm-qt
* D-Bus API changes:
- Expose Seats and Sessions on org.freedesktop.DisplayManager
- Add a CanSwitch property
- Rename ShowGreeter() to SwitchToGreeter()
* Greeter changes:
- Drop "example" from the name of the GTK+ and Qt greeters and make them
official default greeters.
- Use GTK3 for GTK+ greeter.
- Removed the Vala and Python GTK+ greeters, they weren't being well
maintained.
Overview of changes in lightdm 0.4.4
* Fix failure to accept XDMCP connections due to invalid assert.
* Allow minimum-display-number to be set in lightdm.conf and on the command
line.
* Session X authority now written to ~/.Xauthority by default. It can be
configured to run from the system location by setting
user-authority-in-system-dir=true in lightdm.conf.
* When using system authority the authority can be updated by the user.
* Written X authority files now checks hostname and display number.
* Environment is no longer passed through to X servers and sessions, this is
no longer required now PAM works correctly.
* liblightdm API changes:
- Drop ldm_greeter_get_is_first() - it was added for testing and doesn't
work well.
* Fix more errors where authentication messages from previous sessions could
be confused with new sessions.
* Added XDMCP regression tests.
Overview of changes in lightdm 0.4.3
* Don't replace Plymouth if it isn't running on a valid VT
* Allow a null username to log in with - the system will prompt for a
username.
* liblightdm API changes:
- Rename ldm_greeter_provide_secret to ldm_greeter_respond - responses
may not be secrets.
- show-prompt signal now has a PromptType field
- show-message signal now has a MessageType field and takes over
behaviour of show-error signal
* Fix error where an authentication failure from a previous session could
be interpreted as a failure in the current session.
* Simplify Vala bindings and add missing methods
Overview of changes in lightdm 0.4.2
* Fix errors communicating with PAM
* Fix interaction with Plytmouth.
* Removes the vt option in lightdm.conf, this is no longer required
and the active is used for the first display if Plymouth is
detected. A new option minimum-vt is added to select the first
VT to be used for other displays.
* On login switch to an existing session if already logged in with that
username.
* Correctly connect up D-Bus interface for user switching
Overview of changes in lightdm 0.4.1
* Fix linking issue with -z,defs
* Added guest account support
* Restart X server if it crashes during a session
* Don't set language environment variables, use the daemon values
(system default) and leave it to ~/.profile for users to set these
* Change greeter library API, starting a session no longer has a language
option
* Fix greeter crash when user accounts change
Overview of changes in lightdm 0.4.0
* Fix crash when child processes quit
* Fix crash when catching signals
* Fix crash when session quits after X server
* Add internal checking for NULL object access
* Correctly handle signals from external programs (Thanks to Jason Conti)
* liblightdm API changes:
- ldm_greeter_start_authentication becomes ldm_greeter_login
- The existing ldm_greeter_login is now ldm_greeter_start_session
and the username parameter is not required.
- Drop ldm_greeter_get_default_layout (X controls the layout)
* Configuration changes:
- Use /etc/lightdm/lightdm.conf instead of /etc/lightdm.conf
- The "displays" item is now called "seats". LightDM will fallback to
"displays" if "seats" is not defined, but this is deprecated and will
be removed by version 1.0.
- Make X server configuration a separate section and now has new options
* Automatic login users now use PAM session lightdm-autologin
* Use org.freedesktop.DisplayManager instead of
org.lightdm.LightDisplayManager for D-Bus name
* Add regression tests
* Allow many more options to be set from the command line
Overview of changes in lightdm 0.3.7
* Fix autologin broken in 0.3.3
Overview of changes in lightdm 0.3.6
* Disable Plymouth when starting
* Allow display vt setting to be set to "active" to start on active VT
* Fix login in Qt example greeter
* Fix typo for High Contrast menu item (GTK example greeter)
Overview of changes in lightdm 0.3.5
* Set working directory when logging in
* Massive improvements to Qt greeter
* Fix XDMCP authentication/authorization errors
* Have the daemon open a connection to a local X server
* Tidy up some debugging messages
Overview of changes in lightdm 0.3.4
* Updates to liblightdm-qt
* Fix --with-cache-dir not working
* Set greeterdir in .pc files to point to where greeter engines should be
installed
Overview of changes in lightdm 0.3.3
* Don't run in test-mode if Xephyr cannot be found
* Fix daemon using 100% CPU after greeter quits
* Fix crash when users don't have GECOS data
* Greeters can now detect user add/remove events
* Fix ConsoleKit support broken with switch to GDBus
* Correctly clean up X processes on exit
* Wait for greeter to quit before running user session (fixes problem with
Compiz)
Overview of changes in lightdm 0.3.2
* Distribute GTK greeter .ui file
Overview of changes in lightdm 0.3.1
* Add greeter login_with_defaults method
* Add example to the name of all the greeters
* Set the configuration for the default display to use VT 7
* Fix the vt setting for displays, it was incorrectly named tty
* Fix crash when load-users is false in UserManager
* Fix up name of .vapi file so it can be used directly from valac
* Tidy up Qt library and greeter
* Move menubar in greeters to top of screen
* Fix console kit get_can_*() methods
* Use GtkBuilder for example GTK greeter
Overview of changes in lightdm 0.3.0
* Correctly pass environment variables through to the session
* Allow starting virtual terminal to be configured
* Replace D-Bus greeter communication with a private pipe
* Use GDBus instead of dbus-glib
* Use the engine process name instead of a hardcoded value in theme files
* Rename ldm_greeter_connect to ldm_greeter_connect_to_server so it doesn't
clash with GObject method name
* Rename ldm-gtk-greeter to lightdm-gtk-greeter
* Rename gnome theme to example-gtk-gnome
* Add more annotations to liblightdm-gobject
* Add an example PyGObject, Vala and QT greeter
* Generate metadata for QT libraries
* Move Webkit greeter into separate module
Overview of changes in lightdm 0.2.3
* Set correct linking library names in pkg-config files
* Handle session executables that take arguments
Overview of changes in lightdm 0.2.2
* Make default themedir work when --prefix is not passed to configure
* Look for face images in ~/.face and ~/.face.icon
* Put .vapi file in unversioned vala directory
* Fix compiling without QT
* Choose the VT to open the display on
* Set correct group memberships for sessions (Yves-Alexis Perez)
* Set permissions on xauthority file so it can only be read by the owning
user (Yves-Alexis Perez)
* Set correct permissions on ~/.dmrc (Yves-Alexis Perez)
* Add --enable-liblightdm-gobject, --enable-liblightdm-qt configure option
* Set environment variables from PAM (Yves-Alexis Perez)
Overview of changes in lightdm 0.2.1
* Use "lightdm" as default PAM service and make it configurable
* Rename libldmgreeter to libldmgreeter-gobject
* Add libldmgreeter-qt (David Edmundson)
* Fix gobject-introspection build
* Renamed libldmgreeter to liblightdm
* Install a .vapi file
Overview of changes in lightdm 0.2.0
* Make default user configuration per-display
* Only automatically login the first time
* Fix WebKit theme loading and automatic login
* Do cross fade for sessions that support it
(set X-LightDM-Supports-Transitions=true in their xsession file)
* Load user settings from ~/.dmrc
* Add configuration for default language/layout
* Change language/layout/session when user selected in GTK+ greeter
* Set default keyboard layout on first login
* Don't run all sessions throught /etc/X11/XSession - make the session
wrapper optional and configurable.
* Make pkgconfig file require libxklavier
* Only compile greeters if have dependencies
* Include ck-connector code to reduce library dependencies
* Add introspection.m4 to the source tree
* Support using no greeter user in lightdm.conf
* Flush writes to main log file
* Allow non-privilidged user to write greeter log file in /var
* Fix bugs stopping running greeter as privileged user (i.e. root)
* Don't default to running greeters with the GDM user - it may not exist!
Overview of changes in lightdm 0.1.2
* Write PID file
* Make user switcher API work
* Add a AddDisplay D-Bus method to start new displays
* Feed signals to GLib main loop via a pipe
* Add an upstart script
* Make theme files more similar to existing themes
* Change dbus namespace from org.freedesktop.LightDisplayManager to
org.lightdm.LightDisplayManager
* Write debug log to /var/log/lightdm/lightdm.log instead of stdout. Use
--debug for the previous behaviour
* Add exec_prefix into libldmgreeter.pc
* Change versioned include and pkgconfig files from 1 to 0
* Add themedir variable into pkgconfig file
* Connect language list in GTK greeter to login language
Overview of changes in lightdm 0.1.1
* Change licence of libldmgreeter from GPL to LGPL
* Write X server and session output to log files
* Set PATH, DESKTOP_SESSION, GDMSESSION and USERNAME environment variables
* Run sessions through Xsession
* Close all X servers on exit
* Send SIGHUP to X server when returning to greeter (makes all clients quit)
* Change authorization after a session ends so previous session does not get
access
* Make shutdown buttons work in GTK+ greeter
* Make user manager configurable
* Make GTK+ greeter show username entry if no user list
* Hide C and POSIX languages in greeter
* Load language and layout from .dmrc file
Overview of changes in lightdm 0.1.0
* Make --test-mode which runs as the current user
* Support displays acting as XDMCP terminals
* Support MIT-MAGIC-COOKIE-1 and XDM-AUTHORIZATION-1 authorization
* Support XDMCP over IPv6
Overview of changes in lightdm 0.0.4
* Support XDMCP logins
* Support multi-head
* Clean up resources on exit
* Create gettext instance in WebKit greeter
Overview of changes in lightdm 0.0.3
* Wait for signal from X server before starting session
* Add language API
* Add keyboard layout API
* Add gettext support to the WebKit greeter
Overview of changes in lightdm 0.0.2
* Fix installation of D-Bus service file
* Allow DISPLAY env variable to be passed to X server so can run Xephyr
* Handle no automatic login in webkit theme
Overview of changes in lightdm 0.0.1
* Initial release
ubuntu-lightdm-e42f6d6/README.md 0000664 0000000 0000000 00000007550 15235163047 0016400 0 ustar 00root root 0000000 0000000 # LightDM Display Manager
[](https://github.com/ubuntu/lightdm/actions/workflows/test.yaml)
[](https://askubuntu.com/questions/tagged/lightdm)
LightDM is a lightweight, cross-desktop display manager. A display manager is a daemon that:
- Runs display servers (e.g. X) where necessary.
- Runs greeters to allow users to pick which user account and session type to use.
- Allows greeters to perform authentication using PAM.
- Runs session processes once authentication is complete.
- Provides remote graphical login options.
Key features of LightDM are:
- Cross-desktop - supports different desktop technologies (X, Wayland, Mir, etc)
- Lightweight - low memory usage and fast performance
- Supports remote login (incoming: XDMCP and VNC; outgoing: XDMCP and pluggable)
- Supports guest sessions
- Has a comprehensive test suite
The core LightDM project does not provide any greeter with it; you should install a greeter appropriate to your system. Popular greeter projects are:
* [LightDM GTK+ Greeter](https://github.com/Xubuntu/lightdm-gtk-greeter) - a greeter that has moderate requirements (GTK+).
* [LightDM KDE Greeter](https://invent.kde.org/plasma/lightdm-kde-greeter) - greeter by [KDE](https://kde.org) (Qt)
* [LXQt Greeter](https://github.com/lxde/lxqt-lightdm-greeter) - greeter used in [LXQt](http://lxqt.org/) (Qt)
* [Pantheon Greeter](https://github.com/elementary/greeter) - greeter used in [elementary OS](https://elementary.io/) (GTK+/Clutter).
* [Unity Greeter](https://launchpad.net/unity-greeter) - greeter used in [Unity](https://launchpad.net/unity).
* [WebKit2 Greeter](https://github.com/antergos/lightdm-webkit2-greeter) - greeter that can be themed using HTML/CSS/Javascript
* Run with no greeter (automatic login only)
* [Write your own...](https://www.freedesktop.org/wiki/Software/LightDM/Development/)
## Configuration
LightDM configuration is provided by the following files:
```
/usr/share/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf
```
System provided configuration should be stored in `/usr/share/lightdm/lightdm.conf.d/`. System administrators can override this configuration by adding files to `/etc/lightdm/lightdm.conf.d/` and `/etc/lightdm/lightdm.conf`. Files are read in the above order and combined together to make the LightDM configuration.
For example, if a sysadmin wanted to override the system configured default session (provided in `/usr/share/lightdm/lightdm.conf.d`) they should make a file `/etc/lightdm/lightdm.conf.d/50-myconfig.conf` with the following:
```
[Seat:*]
user-session=mysession
```
Configuration is in keyfile format. For most installations you will want to change the keys in the `[Seat:*]` section as this applies to all seats on the system (normally just one). A configuration file showing all the possible keys is provided in [`data/lightdm.conf`](https://github.com/ubuntu/lightdm/blob/main/data/lightdm.conf).
### Display Setup Script
LightDM can be configured to run an external shell script to setup displays.
If an display setup script is used, it must be:
- Located under `/usr/share`
- Owned by the user `lightdm` and group `lightdm`
- It cannot print or log to any destination not accessible to LightDM
To test a configuration:
- Install `xserver-xephyr`: `sudo apt install xserver-xephyr`
- Run the test as user lightdm: `sudo -u lightdm lightdm --test-mode --debug`
Put the shell script reference in the LightDM configuration:
```
[Seat:*]
display-setup-script=/usr/share/example_display_setup_script.sh
```
## Questions
[Stack Overflow](http://stackoverflow.com/search?q=lightdm) and [Ask Ubuntu](http://askubuntu.com/search?q=lightdm) are good sites for frequently asked questions.
ubuntu-lightdm-e42f6d6/autogen.sh 0000775 0000000 0000000 00000000666 15235163047 0017123 0 ustar 00root root 0000000 0000000 #!/bin/sh
# Run this to generate all the initial makefiles, etc.
libtoolize --force --copy
intltoolize --force --copy
gtkdocize --copy
aclocal
autoconf
autoheader
automake --add-missing --copy --foreign
YELP=`which yelp-build`
if test -z $YELP; then
echo "*** The tools to build the documentation are not found,"
echo " please install the yelp-tools package ***"
exit 1
fi
if [ -z "$NOCONFIGURE" ]; then
./configure $@
fi
ubuntu-lightdm-e42f6d6/common/ 0000775 0000000 0000000 00000000000 15235163047 0016402 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/common/Makefile.am 0000664 0000000 0000000 00000000576 15235163047 0020446 0 ustar 00root root 0000000 0000000 # -*- Mode: Automake; indent-tabs-mode: t; tab-width: 4 -*-
noinst_LTLIBRARIES = libcommon.la
libcommon_la_SOURCES = \
configuration.c \
configuration.h \
dmrc.c \
dmrc.h \
privileges.c \
privileges.h \
user-list.c \
user-list.h
libcommon_la_CFLAGS = \
$(WARN_CFLAGS) \
$(GLIB_CFLAGS) \
-DCONFIG_DIR=\"$(sysconfdir)/lightdm\"
libcommon_la_LIBADD = \
$(GLIB_LDFLAGS)
ubuntu-lightdm-e42f6d6/common/configuration.c 0000664 0000000 0000000 00000045571 15235163047 0021431 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
#include
#include "configuration.h"
struct ConfigurationPrivate
{
gchar *dir;
GKeyFile *key_file;
GList *sources;
GHashTable *key_sources;
GHashTable *lightdm_keys;
GHashTable *seat_keys;
GHashTable *xdmcp_keys;
GHashTable *vnc_keys;
};
typedef enum
{
KEY_UNKNOWN,
KEY_SUPPORTED,
KEY_DEPRECATED
} KeyStatus;
G_DEFINE_TYPE_WITH_PRIVATE (Configuration, config, G_TYPE_OBJECT)
static Configuration *configuration_instance = NULL;
Configuration *
config_get_instance (void)
{
if (!configuration_instance)
configuration_instance = g_object_new (CONFIGURATION_TYPE, NULL);
return configuration_instance;
}
gboolean
config_load_from_file (Configuration *config, const gchar *path, GList **messages, GError **error)
{
g_autoptr(GKeyFile) key_file = g_key_file_new ();
if (!g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, error))
return FALSE;
gchar *source_path = g_strdup (path);
config->priv->sources = g_list_append (config->priv->sources, source_path);
g_auto(GStrv) groups = g_key_file_get_groups (key_file, NULL);
for (int i = 0; groups[i]; i++)
{
/* Move keys from deprecated [SeatDefaults] into [Seat:*] */
const gchar *group = groups[i];
if (strcmp (group, "SeatDefaults") == 0)
{
if (messages)
*messages = g_list_append (*messages, g_strdup (" [SeatDefaults] is now called [Seat:*], please update this configuration"));
group = "Seat:*";
}
/* Check if we know this group */
GHashTable *known_keys = NULL;
if (strcmp (group, "LightDM") == 0)
known_keys = config->priv->lightdm_keys;
else if (g_str_has_prefix (group, "Seat:"))
known_keys = config->priv->seat_keys;
else if (strcmp (group, "XDMCPServer") == 0)
known_keys = config->priv->xdmcp_keys;
else if (strcmp (group, "VNCServer") == 0)
known_keys = config->priv->vnc_keys;
else if (messages)
*messages = g_list_append (*messages, g_strdup_printf (" Unknown group [%s] in configuration", group));
g_auto(GStrv) keys = g_key_file_get_keys (key_file, groups[i], NULL, error);
if (!keys)
break;
for (int j = 0; keys[j]; j++)
{
if (known_keys != NULL)
{
KeyStatus status = GPOINTER_TO_INT (g_hash_table_lookup (known_keys, keys[j]));
if (status == KEY_UNKNOWN) {
if (messages != NULL)
*messages = g_list_append (*messages, g_strdup_printf (" [%s] contains unknown option %s", group, keys[j]));
}
else if (status == KEY_DEPRECATED) {
if (messages != NULL)
*messages = g_list_append (*messages, g_strdup_printf (" [%s] contains deprecated option %s, this can be safely removed", group, keys[j]));
}
}
g_autofree gchar *value = g_key_file_get_value (key_file, groups[i], keys[j], NULL);
g_key_file_set_value (config->priv->key_file, group, keys[j], value);
g_autofree gchar *k = g_strdup_printf ("%s]%s", group, keys[j]);
g_hash_table_insert (config->priv->key_sources, g_steal_pointer (&k), source_path);
}
}
return TRUE;
}
static gchar *
path_make_absolute (gchar *path)
{
if (!path)
return NULL;
if (g_path_is_absolute (path))
return path;
g_autofree gchar *cwd = g_get_current_dir ();
return g_build_filename (cwd, path, NULL);
}
static int
compare_strings (gconstpointer a, gconstpointer b)
{
return strcmp (a, b);
}
static void
load_config_directory (const gchar *path, GList **messages)
{
/* Find configuration files */
g_autoptr(GError) error = NULL;
GDir *dir = g_dir_open (path, 0, &error);
if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_printerr ("Failed to open configuration directory %s: %s\n", path, error->message);
GList *files = NULL;
if (dir)
{
const gchar *name;
while ((name = g_dir_read_name (dir)))
files = g_list_append (files, g_strdup (name));
g_dir_close (dir);
}
/* Sort alphabetically and load onto existing configuration */
files = g_list_sort (files, compare_strings);
for (GList *link = files; link; link = link->next)
{
gchar *filename = link->data;
g_autofree gchar *conf_path = g_build_filename (path, filename, NULL);
if (g_str_has_suffix (filename, ".conf"))
{
if (messages)
*messages = g_list_append (*messages, g_strdup_printf ("Loading configuration from %s", conf_path));
g_autoptr(GError) conf_error = NULL;
config_load_from_file (config_get_instance (), conf_path, messages, &conf_error);
if (conf_error && !g_error_matches (conf_error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_printerr ("Failed to load configuration from %s: %s\n", filename, conf_error->message);
}
else
g_debug ("Ignoring configuration file %s, it does not have .conf suffix", conf_path);
}
g_list_free_full (files, g_free);
}
static void
load_config_directories (const gchar * const *dirs, GList **messages)
{
/* Load in reverse order, because XDG_* fields are preference-ordered and the directories in front should override directories in back. */
for (gint i = g_strv_length ((gchar **)dirs) - 1; i >= 0; i--)
{
g_autofree gchar *full_dir = g_build_filename (dirs[i], "lightdm", "lightdm.conf.d", NULL);
if (messages)
*messages = g_list_append (*messages, g_strdup_printf ("Loading configuration dirs from %s", full_dir));
load_config_directory (full_dir, messages);
}
}
gboolean
config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages)
{
g_return_val_if_fail (config->priv->dir == NULL, FALSE);
load_config_directories (g_get_system_data_dirs (), messages);
load_config_directories (g_get_system_config_dirs (), messages);
g_autofree gchar *config_d_dir = NULL;
g_autofree gchar *path = NULL;
if (config_path)
{
path = g_strdup (config_path);
g_autofree gchar *basename = g_path_get_basename (config_path);
config->priv->dir = path_make_absolute (basename);
}
else
{
config->priv->dir = g_strdup (CONFIG_DIR);
config_d_dir = g_build_filename (config->priv->dir, "lightdm.conf.d", NULL);
path = g_build_filename (config->priv->dir, "lightdm.conf", NULL);
}
if (config_d_dir)
load_config_directory (config_d_dir, messages);
if (messages)
*messages = g_list_append (*messages, g_strdup_printf ("Loading configuration from %s", path));
g_autoptr(GError) error = NULL;
if (!config_load_from_file (config, path, messages, &error))
{
gboolean is_empty = error && g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
if (config_path || !is_empty)
{
if (error)
g_printerr ("Failed to load configuration from %s: %s\n", path, error->message);
return FALSE;
}
}
return TRUE;
}
const gchar *
config_get_directory (Configuration *config)
{
return config->priv->dir;
}
gchar **
config_get_groups (Configuration *config)
{
return g_key_file_get_groups (config->priv->key_file, NULL);
}
gchar **
config_get_keys (Configuration *config, const gchar *group_name)
{
return g_key_file_get_keys (config->priv->key_file, group_name, NULL, NULL);
}
gboolean
config_has_key (Configuration *config, const gchar *section, const gchar *key)
{
return g_key_file_has_key (config->priv->key_file, section, key, NULL);
}
GList *
config_get_sources (Configuration *config)
{
return config->priv->sources;
}
const gchar *
config_get_source (Configuration *config, const gchar *section, const gchar *key)
{
g_autofree gchar *k = g_strdup_printf ("%s]%s", section, key);
return g_hash_table_lookup (config->priv->key_sources, k);
}
void
config_set_string (Configuration *config, const gchar *section, const gchar *key, const gchar *value)
{
g_key_file_set_string (config->priv->key_file, section, key, value);
}
gchar *
config_get_string (Configuration *config, const gchar *section, const gchar *key)
{
return g_key_file_get_string (config->priv->key_file, section, key, NULL);
}
void
config_set_string_list (Configuration *config, const gchar *section, const gchar *key, const gchar **value, gsize length)
{
g_key_file_set_string_list (config->priv->key_file, section, key, value, length);
}
gchar **
config_get_string_list (Configuration *config, const gchar *section, const gchar *key)
{
return g_key_file_get_string_list (config->priv->key_file, section, key, NULL, NULL);
}
void
config_set_integer (Configuration *config, const gchar *section, const gchar *key, gint value)
{
g_key_file_set_integer (config->priv->key_file, section, key, value);
}
gint
config_get_integer (Configuration *config, const gchar *section, const gchar *key)
{
return g_key_file_get_integer (config->priv->key_file, section, key, NULL);
}
void
config_set_boolean (Configuration *config, const gchar *section, const gchar *key, gboolean value)
{
g_key_file_set_boolean (config->priv->key_file, section, key, value);
}
gboolean
config_get_boolean (Configuration *config, const gchar *section, const gchar *key)
{
/* We don't use the standard function because it doesn't work with trailing whitespace:
* https://bugzilla.gnome.org/show_bug.cgi?id=664740
*/
/*return g_key_file_get_boolean (config->priv->key_file, section, key, NULL);*/
g_autofree gchar *value = g_key_file_get_value (config->priv->key_file, section, key, NULL);
if (!value)
return FALSE;
g_strchomp (value);
return strcmp (value, "true") == 0;
}
static void
config_init (Configuration *config)
{
config->priv = config_get_instance_private (config);
config->priv->key_file = g_key_file_new ();
config->priv->key_sources = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
config->priv->lightdm_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
config->priv->seat_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
config->priv->xdmcp_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
config->priv->vnc_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
/* Build up tables of known keys */
g_hash_table_insert (config->priv->lightdm_keys, "start-default-seat", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "greeter-user", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "minimum-display-number", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "minimum-vt", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "lock-memory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "user-authority-in-system-dir", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "guest-account-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "logind-check-graphical", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "log-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "run-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "cache-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "sessions-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "remote-sessions-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "greeters-directory", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "backup-logs", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "dbus-service", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->lightdm_keys, "logind-load-seats", GINT_TO_POINTER (KEY_DEPRECATED));
g_hash_table_insert (config->priv->seat_keys, "type", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "pam-service", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "pam-autologin-service", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "pam-greeter-service", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-backend", GINT_TO_POINTER (KEY_DEPRECATED));
g_hash_table_insert (config->priv->seat_keys, "xserver-command", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xmir-command", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-config", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-layout", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-allow-tcp", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-share", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-hostname", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xserver-display-number", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xdmcp-manager", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xdmcp-port", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xdmcp-key", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "unity-compositor-command", GINT_TO_POINTER (KEY_DEPRECATED));
g_hash_table_insert (config->priv->seat_keys, "unity-compositor-timeout", GINT_TO_POINTER (KEY_DEPRECATED));
g_hash_table_insert (config->priv->seat_keys, "greeter-session", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-hide-users", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-allow-guest", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-show-manual-login", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-show-remote-login", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "user-session", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "allow-user-switching", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "allow-guest", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "guest-session", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "session-wrapper", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-wrapper", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "guest-wrapper", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "display-setup-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "display-stopped-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "greeter-setup-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "session-setup-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "session-cleanup-script", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "autologin-guest", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "autologin-user", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "autologin-user-timeout", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "autologin-in-background", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "autologin-session", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "exit-on-failure", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->seat_keys, "xdg-seat", GINT_TO_POINTER (KEY_DEPRECATED));
g_hash_table_insert (config->priv->xdmcp_keys, "enabled", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->xdmcp_keys, "port", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->xdmcp_keys, "listen-address", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->xdmcp_keys, "key", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->xdmcp_keys, "hostname", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "enabled", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "command", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "port", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "listen-address", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "width", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "height", GINT_TO_POINTER (KEY_SUPPORTED));
g_hash_table_insert (config->priv->vnc_keys, "depth", GINT_TO_POINTER (KEY_SUPPORTED));
}
static void
config_finalize (GObject *object)
{
Configuration *self = CONFIGURATION (object);
g_clear_pointer (&self->priv->dir, g_free);
g_clear_pointer (&self->priv->key_file, g_key_file_free);
g_list_free_full (self->priv->sources, g_free);
g_hash_table_destroy (self->priv->key_sources);
g_hash_table_destroy (self->priv->lightdm_keys);
g_hash_table_destroy (self->priv->seat_keys);
g_hash_table_destroy (self->priv->xdmcp_keys);
g_hash_table_destroy (self->priv->vnc_keys);
G_OBJECT_CLASS (config_parent_class)->finalize (object);
}
static void
config_class_init (ConfigurationClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = config_finalize;
}
ubuntu-lightdm-e42f6d6/common/configuration.h 0000664 0000000 0000000 00000004706 15235163047 0021431 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
#ifndef CONFIGURATION_H_
#define CONFIGURATION_H_
#include
G_BEGIN_DECLS
#define CONFIGURATION_TYPE (config_get_type())
#define CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIGURATION_TYPE, Configuration));
typedef struct ConfigurationPrivate ConfigurationPrivate;
typedef struct
{
GObject parent_instance;
ConfigurationPrivate *priv;
} Configuration;
typedef struct
{
GObjectClass parent_class;
} ConfigurationClass;
GType config_get_type (void);
Configuration *config_get_instance (void);
gboolean config_load_from_file (Configuration *config, const gchar *path, GList **messages, GError **error);
gboolean config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages);
const gchar *config_get_directory (Configuration *config);
gchar **config_get_groups (Configuration *config);
gchar **config_get_keys (Configuration *config, const gchar *group_name);
gboolean config_has_key (Configuration *config, const gchar *section, const gchar *key);
GList *config_get_sources (Configuration *config);
const gchar *config_get_source (Configuration *config, const gchar *section, const gchar *key);
void config_set_string (Configuration *config, const gchar *section, const gchar *key, const gchar *value);
gchar *config_get_string (Configuration *config, const gchar *section, const gchar *key);
void config_set_string_list (Configuration *config, const gchar *section, const gchar *key, const gchar **value, gsize length);
gchar **config_get_string_list (Configuration *config, const gchar *section, const gchar *key);
void config_set_integer (Configuration *config, const gchar *section, const gchar *key, gint value);
gint config_get_integer (Configuration *config, const gchar *section, const gchar *key);
void config_set_boolean (Configuration *config, const gchar *section, const gchar *key, gboolean value);
gboolean config_get_boolean (Configuration *config, const gchar *section, const gchar *key);
G_END_DECLS
#endif /* CONFIGURATION_H_ */
ubuntu-lightdm-e42f6d6/common/dmrc.c 0000664 0000000 0000000 00000006025 15235163047 0017476 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
#include
#include
#include
#include "dmrc.h"
#include "configuration.h"
#include "privileges.h"
#include "user-list.h"
GKeyFile *
dmrc_load (CommonUser *user)
{
g_autoptr(GKeyFile) dmrc_file = g_key_file_new ();
/* Load from the user directory, if this fails (e.g. the user directory
* is not yet mounted) then load from the cache */
g_autofree gchar *path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL);
/* Guard against privilege escalation through symlinks, etc. */
gboolean drop_privileges = geteuid () == 0;
if (drop_privileges)
privileges_drop (common_user_get_uid (user), common_user_get_gid (user));
gboolean have_dmrc = g_key_file_load_from_file (dmrc_file, path, G_KEY_FILE_KEEP_COMMENTS, NULL);
if (drop_privileges)
privileges_reclaim ();
/* If no ~/.dmrc, then load from the cache */
if (!have_dmrc)
{
g_autofree gchar *filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user));
g_autofree gchar *cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory");
g_autofree gchar *cache_path = g_build_filename (cache_dir, "dmrc", filename, NULL);
g_key_file_load_from_file (dmrc_file, cache_path, G_KEY_FILE_KEEP_COMMENTS, NULL);
}
return g_steal_pointer (&dmrc_file);
}
void
dmrc_save (GKeyFile *dmrc_file, CommonUser *user)
{
gsize length;
g_autofree gchar *data = g_key_file_to_data (dmrc_file, &length, NULL);
/* Update the users .dmrc */
g_autofree gchar *path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL);
/* Guard against privilege escalation through symlinks, etc. */
gboolean drop_privileges = geteuid () == 0;
if (drop_privileges)
privileges_drop (common_user_get_uid (user), common_user_get_gid (user));
g_debug ("Writing %s", path);
g_file_set_contents (path, data, length, NULL);
if (drop_privileges)
privileges_reclaim ();
/* Update the .dmrc cache */
g_autofree gchar *cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory");
g_autofree gchar *dmrc_cache_dir = g_build_filename (cache_dir, "dmrc", NULL);
if (g_mkdir_with_parents (dmrc_cache_dir, 0700) < 0)
g_warning ("Failed to make DMRC cache directory %s: %s", dmrc_cache_dir, strerror (errno));
g_autofree gchar *filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user));
g_autofree gchar *cache_path = g_build_filename (dmrc_cache_dir, filename, NULL);
g_file_set_contents (cache_path, data, length, NULL);
}
ubuntu-lightdm-e42f6d6/common/dmrc.h 0000664 0000000 0000000 00000001221 15235163047 0017474 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
#ifndef DMRC_H_
#define DMRC_H_
#include
#include "user-list.h"
G_BEGIN_DECLS
GKeyFile *dmrc_load (CommonUser *user);
void dmrc_save (GKeyFile *dmrc_file, CommonUser *user);
G_END_DECLS
#endif /* DMRC_H_ */
ubuntu-lightdm-e42f6d6/common/privileges.c 0000664 0000000 0000000 00000002315 15235163047 0020720 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
/* for setres*id() */
#define _GNU_SOURCE
#include
#include
#include
#include "privileges.h"
void
privileges_drop (uid_t uid, gid_t gid)
{
#ifdef HAVE_SETRESGID
g_assert (setresgid (gid, gid, -1) == 0);
#else
g_assert (setgid (gid) == 0);
g_assert (setegid (gid) == 0);
#endif
#ifdef HAVE_SETRESUID
g_assert (setresuid (uid, uid, -1) == 0);
#else
g_assert (setuid (uid) == 0);
g_assert (seteuid (uid) == 0);
#endif
}
void
privileges_reclaim (void)
{
#ifdef HAVE_SETRESUID
g_assert (setresuid (0, 0, -1) == 0);
#else
g_assert (setuid (0) == 0);
g_assert (seteuid (0) == 0);
#endif
#ifdef HAVE_SETRESGID
g_assert (setresgid (0, 0, -1) == 0);
#else
g_assert (setgid (0) == 0);
g_assert (setegid (0) == 0);
#endif
}
ubuntu-lightdm-e42f6d6/common/privileges.h 0000664 0000000 0000000 00000001142 15235163047 0020722 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
* license.
*/
#ifndef PRIVILEGES_H_
#define PRIVILEGES_H_
#include
void privileges_drop (uid_t uid, gid_t gid);
void privileges_reclaim (void);
#endif /* PRIVILEGES_H_ */
ubuntu-lightdm-e42f6d6/common/user-list.c 0000664 0000000 0000000 00000200237 15235163047 0020501 0 ustar 00root root 0000000 0000000 /* -*- Mode: C; indent-tabs-mode:nil; tab-width:4 -*-
*
* Copyright (C) 2010 Robert Ancell.
* Copyright (C) 2014 Canonical, Ltd.
* Authors: Robert Ancell
* Michael Terry
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2 or version 3 of the License.
* See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
*/
#include
#include
#include
#include
#include
#include
#include "dmrc.h"
#include "user-list.h"
enum
{
LIST_PROP_NUM_USERS = 1,
LIST_PROP_USERS,
};
enum
{
USER_PROP_NAME = 1,
USER_PROP_REAL_NAME,
USER_PROP_DISPLAY_NAME,
USER_PROP_HOME_DIRECTORY,
USER_PROP_SHELL,
USER_PROP_IMAGE,
USER_PROP_BACKGROUND,
USER_PROP_LANGUAGE,
USER_PROP_LAYOUT,
USER_PROP_LAYOUTS,
USER_PROP_SESSION,
USER_PROP_LOGGED_IN,
USER_PROP_HAS_MESSAGES,
USER_PROP_UID,
USER_PROP_GID,
USER_PROP_IS_LOCKED,
};
enum
{
USER_ADDED,
USER_CHANGED,
USER_REMOVED,
LAST_LIST_SIGNAL
};
static guint list_signals[LAST_LIST_SIGNAL] = { 0 };
enum
{
CHANGED,
GET_LOGGED_IN,
LAST_USER_SIGNAL
};
static guint user_signals[LAST_USER_SIGNAL] = { 0 };
typedef struct
{
/* Bus connection being communicated on */
GDBusConnection *bus;
/* D-Bus signals for accounts service events */
guint user_added_signal;
guint user_removed_signal;
/* D-Bus signals for display manager events */
guint session_added_signal;
guint session_removed_signal;
/* File monitor for password file */
GFileMonitor *passwd_monitor;
/* TRUE if have scanned users */
gboolean have_users;
/* List of users */
GList *users;
/* List of sessions */
GList *sessions;
} CommonUserListPrivate;
typedef struct
{
/* TRUE if have loaded the DMRC file */
gboolean loaded_dmrc;
/* Bus we are listening for accounts service on */
GDBusConnection *bus;
/* Accounts service path */
gchar *path;
/* Update signal from accounts service */
guint changed_signal;
/* Username */
gchar *name;
/* Descriptive name for user */
gchar *real_name;
/* Home directory of user */
gchar *home_directory;
/* Shell for user */
gchar *shell;
/* Image for user */
gchar *image;
/* Background image for users */
gchar *background;
/* TRUE if this user has messages available */
gboolean has_messages;
/* UID of user */
guint64 uid;
/* GID of user */
guint64 gid;
/* User chosen language */
gchar *language;
/* User layout preferences */
gchar **layouts;
/* User default session */
gchar *session;
/* TRUE if this user is locked */
gboolean is_locked;
} CommonUserPrivate;
typedef struct
{
GObject parent_instance;
gchar *path;
gchar *username;
} CommonSession;
typedef struct
{
GObjectClass parent_class;
} CommonSessionClass;
G_DEFINE_TYPE_WITH_PRIVATE (CommonUserList, common_user_list, G_TYPE_OBJECT)
G_DEFINE_TYPE_WITH_PRIVATE (CommonUser, common_user, G_TYPE_OBJECT)
#define COMMON_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), common_session_get_type (), CommonSession))
GType common_session_get_type (void);
G_DEFINE_TYPE (CommonSession, common_session, G_TYPE_OBJECT)
#define PASSWD_FILE "/etc/passwd"
#define USER_CONFIG_FILE "/etc/lightdm/users.conf"
static CommonUserList *singleton = NULL;
/**
* common_user_list_get_instance:
*
* Get the user list.
*
* Return value: (transfer none): the #CommonUserList
**/
CommonUserList *
common_user_list_get_instance (void)
{
if (!singleton)
singleton = g_object_new (COMMON_TYPE_USER_LIST, NULL);
return singleton;
}
void
common_user_list_cleanup (void)
{
g_clear_object (&singleton);
}
static CommonUser *
get_user_by_name (CommonUserList *user_list, const gchar *username)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
for (GList *link = priv->users; link; link = link->next)
{
CommonUser *user = link->data;
if (g_strcmp0 (common_user_get_name (user), username) == 0)
return user;
}
return NULL;
}
static CommonUser *
get_user_by_path (CommonUserList *user_list, const gchar *path)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
for (GList *link = priv->users; link; link = link->next)
{
CommonUser *user = link->data;
CommonUserPrivate *user_priv = common_user_get_instance_private (user);
if (g_strcmp0 (user_priv->path, path) == 0)
return user;
}
return NULL;
}
static gint
compare_user (gconstpointer a, gconstpointer b)
{
CommonUser *user_a = (CommonUser *) a, *user_b = (CommonUser *) b;
return g_strcmp0 (common_user_get_display_name (user_a), common_user_get_display_name (user_b));
}
static gboolean
update_passwd_user (CommonUser *user, const gchar *real_name, const gchar *home_directory, const gchar *shell, const gchar *image)
{
CommonUserPrivate *priv = common_user_get_instance_private (user);
/* Skip if already set to this */
if (g_strcmp0 (common_user_get_real_name (user), real_name) == 0 &&
g_strcmp0 (common_user_get_home_directory (user), home_directory) == 0 &&
g_strcmp0 (common_user_get_shell (user), shell) == 0 &&
g_strcmp0 (common_user_get_image (user), image) == 0)
return FALSE;
g_free (priv->real_name);
priv->real_name = g_strdup (real_name);
g_free (priv->home_directory);
priv->home_directory = g_strdup (home_directory);
g_free (priv->shell);
priv->shell = g_strdup (shell);
g_free (priv->image);
priv->image = g_strdup (image);
return TRUE;
}
static void load_sessions (CommonUserList *user_list);
static gboolean
get_logged_in_cb (CommonUser *user, CommonUserList *user_list)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
CommonUserPrivate *user_priv = common_user_get_instance_private (user);
// Lazily decide to load/listen to sessions
if (priv->session_added_signal == 0)
load_sessions (user_list);
const gchar *username = user_priv->name;
for (GList *link = priv->sessions; link; link = link->next)
{
CommonSession *session = link->data;
if (strcmp (session->username, username) == 0)
return TRUE;
}
return FALSE;
}
static void
user_changed_cb (CommonUser *user, CommonUserList *user_list)
{
g_signal_emit (user_list, list_signals[USER_CHANGED], 0, user);
}
static CommonUser *
make_passwd_user (CommonUserList *user_list, struct passwd *entry)
{
CommonUser *user = g_object_new (COMMON_TYPE_USER, NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
g_signal_connect (user, "get-logged-in", G_CALLBACK (get_logged_in_cb), user_list);
g_auto(GStrv) tokens = g_strsplit (entry->pw_gecos, ",", -1);
gchar *real_name;
if (tokens[0] != NULL && tokens[0][0] != '\0')
real_name = g_strdup (tokens[0]);
else
real_name = g_strdup ("");
gchar *image = g_build_filename (entry->pw_dir, ".face", NULL);
if (!g_file_test (image, G_FILE_TEST_EXISTS))
{
g_free (image);
image = g_build_filename (entry->pw_dir, ".face.icon", NULL);
if (!g_file_test (image, G_FILE_TEST_EXISTS))
{
g_free (image);
image = NULL;
}
}
priv->name = g_strdup (entry->pw_name);
priv->real_name = real_name;
priv->home_directory = g_strdup (entry->pw_dir);
priv->shell = g_strdup (entry->pw_shell);
priv->image = image;
priv->uid = entry->pw_uid;
priv->gid = entry->pw_gid;
return user;
}
static void
load_passwd_file (CommonUserList *user_list, gboolean emit_add_signal)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
g_debug ("Loading user config from %s", USER_CONFIG_FILE);
g_autoptr(GKeyFile) config = g_key_file_new ();
g_autoptr(GError) error = NULL;
g_key_file_load_from_file (config, USER_CONFIG_FILE, G_KEY_FILE_NONE, &error);
if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_warning ("Failed to load configuration from %s: %s", USER_CONFIG_FILE, error->message);
gint minimum_uid = 500;
if (g_key_file_has_key (config, "UserList", "minimum-uid", NULL))
minimum_uid = g_key_file_get_integer (config, "UserList", "minimum-uid", NULL);
g_autofree gchar *hidden_users_list = g_key_file_get_string (config, "UserList", "hidden-users", NULL);
if (!hidden_users_list)
hidden_users_list = g_strdup ("nobody nobody4 noaccess");
g_auto(GStrv) hidden_users = g_strsplit (hidden_users_list, " ", -1);
g_autofree gchar *hidden_shells_list = g_key_file_get_string (config, "UserList", "hidden-shells", NULL);
if (!hidden_shells_list)
hidden_shells_list = g_strdup ("/bin/false /usr/sbin/nologin");
g_auto(GStrv) hidden_shells = g_strsplit (hidden_shells_list, " ", -1);
setpwent ();
GList *users = NULL, *new_users = NULL, *changed_users = NULL;
while (TRUE)
{
errno = 0;
struct passwd *entry = getpwent ();
if (!entry)
break;
/* Ignore system users */
if (entry->pw_uid < minimum_uid)
continue;
/* Ignore users disabled by shell */
if (entry->pw_shell)
{
int i;
for (i = 0; hidden_shells[i] && strcmp (entry->pw_shell, hidden_shells[i]) != 0; i++);
if (hidden_shells[i])
continue;
}
/* Ignore certain users */
int i;
for (i = 0; hidden_users[i] && strcmp (entry->pw_name, hidden_users[i]) != 0; i++);
if (hidden_users[i])
continue;
CommonUser *user = make_passwd_user (user_list, entry);
/* Update existing users if have them */
GList *link;
for (link = priv->users; link; link = link->next)
{
CommonUser *info = link->data;
if (strcmp (common_user_get_name (info), common_user_get_name (user)) == 0)
{
if (update_passwd_user (info, common_user_get_real_name (user), common_user_get_home_directory (user), common_user_get_shell (user), common_user_get_image (user)))
changed_users = g_list_insert_sorted (changed_users, info, compare_user);
g_object_unref (user);
user = info;
break;
}
}
if (!link)
{
/* Only notify once we have loaded the user list */
if (priv->have_users)
new_users = g_list_insert_sorted (new_users, user, compare_user);
}
users = g_list_insert_sorted (users, user, compare_user);
}
if (errno != 0)
g_warning ("Failed to read password database: %s", strerror (errno));
endpwent ();
/* Use new user list */
GList *old_users = priv->users;
priv->users = users;
/* Notify of changes */
for (GList *link = new_users; link; link = link->next)
{
CommonUser *info = link->data;
g_debug ("User %s added", common_user_get_name (info));
g_signal_connect (info, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), user_list);
if (emit_add_signal)
g_signal_emit (user_list, list_signals[USER_ADDED], 0, info);
}
g_list_free (new_users);
for (GList *link = changed_users; link; link = link->next)
{
CommonUser *info = link->data;
g_debug ("User %s changed", common_user_get_name (info));
g_signal_emit (info, user_signals[CHANGED], 0);
}
g_list_free (changed_users);
for (GList *link = old_users; link; link = link->next)
{
/* See if this user is in the current list */
GList *new_link;
for (new_link = priv->users; new_link; new_link = new_link->next)
{
if (new_link->data == link->data)
break;
}
if (!new_link)
{
CommonUser *info = link->data;
g_debug ("User %s removed", common_user_get_name (info));
g_signal_emit (user_list, list_signals[USER_REMOVED], 0, info);
g_object_unref (info);
}
}
g_list_free (old_users);
}
static void
passwd_changed_cb (GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type, CommonUserList *user_list)
{
if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT)
{
g_debug ("%s changed, reloading user list", g_file_get_path (file));
load_passwd_file (user_list, TRUE);
}
}
static gboolean load_accounts_user (CommonUser *user);
static void
accounts_user_changed_cb (GDBusConnection *connection,
const gchar *sender_name,
const gchar *object_path,
const gchar *interface_name,
const gchar *signal_name,
GVariant *parameters,
gpointer data)
{
CommonUser *user = data;
/*CommonUserPrivate *priv = common_user_get_instance_private (user);*/
/* Log message disabled as AccountsService can have arbitrary plugins that
* might cause us to log when properties change we don't use. LP: #1376357
*/
/*g_debug ("User %s changed", priv->path);*/
if (load_accounts_user (user))
g_signal_emit (user, user_signals[CHANGED], 0);
}
static gboolean
load_accounts_user (CommonUser *user)
{
CommonUserPrivate *priv = common_user_get_instance_private (user);
/* Get the properties for this user */
if (!priv->changed_signal)
priv->changed_signal = g_dbus_connection_signal_subscribe (priv->bus,
"org.freedesktop.Accounts",
"org.freedesktop.Accounts.User",
"Changed",
priv->path,
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
accounts_user_changed_cb,
user,
NULL);
g_autoptr(GError) error = NULL;
g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.Accounts",
priv->path,
"org.freedesktop.DBus.Properties",
"GetAll",
g_variant_new ("(s)", "org.freedesktop.Accounts.User"),
G_VARIANT_TYPE ("(a{sv})"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Error updating user %s: %s", priv->path, error->message);
if (!result)
return FALSE;
/* Store the properties we need */
g_autoptr(GVariantIter) iter = NULL;
g_variant_get (result, "(a{sv})", &iter);
const gchar *name;
GVariant *value;
gboolean system_account = FALSE;
while (g_variant_iter_loop (iter, "{&sv}", &name, &value))
{
if (strcmp (name, "UserName") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->name);
priv->name = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "RealName") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->real_name);
priv->real_name = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "HomeDirectory") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->home_directory);
priv->home_directory = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "Shell") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->shell);
priv->shell = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "SystemAccount") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN))
system_account = g_variant_get_boolean (value);
else if (strcmp (name, "Language") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
if (priv->language)
g_free (priv->language);
priv->language = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "IconFile") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->image);
priv->image = g_variant_dup_string (value, NULL);
if (strcmp (priv->image, "") == 0)
g_clear_pointer (&priv->image, g_free);
}
else if (strcmp (name, "XSession") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->session);
priv->session = g_variant_dup_string (value, NULL);
}
else if (strcmp (name, "Uid") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_UINT64))
priv->uid = g_variant_get_uint64 (value);
else if (strcmp (name, "Locked") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN))
priv->is_locked = g_variant_get_boolean (value);
}
g_autoptr(GVariant) extra_result = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.Accounts",
priv->path,
"org.freedesktop.DBus.Properties",
"GetAll",
g_variant_new ("(s)", "org.freedesktop.DisplayManager.AccountsService"),
G_VARIANT_TYPE ("(a{sv})"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Error updating user %s: %s", priv->path, error->message);
if (extra_result) {
g_autoptr(GVariantIter) extra_iter = NULL;
g_variant_get (extra_result, "(a{sv})", &extra_iter);
while (g_variant_iter_loop (extra_iter, "{&sv}", &name, &value))
{
if (strcmp (name, "BackgroundFile") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
{
g_free (priv->background);
priv->background = g_variant_dup_string (value, NULL);
if (strcmp (priv->background, "") == 0)
g_clear_pointer (&priv->background, g_free);
}
else if (strcmp (name, "HasMessages") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN))
priv->has_messages = g_variant_get_boolean (value);
else if (strcmp (name, "KeyboardLayouts") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING_ARRAY))
{
g_strfreev (priv->layouts);
priv->layouts = g_variant_dup_strv (value, NULL);
if (!priv->layouts)
{
priv->layouts = g_malloc (sizeof (gchar *) * 1);
priv->layouts[0] = NULL;
}
}
}
}
return !system_account;
}
static void
add_accounts_user (CommonUserList *user_list, const gchar *path, gboolean emit_signal)
{
CommonUserListPrivate *list_priv = common_user_list_get_instance_private (user_list);
CommonUser *user = g_object_new (COMMON_TYPE_USER, NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
g_debug ("User %s added", path);
priv->bus = g_object_ref (list_priv->bus);
priv->path = g_strdup (path);
g_signal_connect (user, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), user_list);
g_signal_connect (user, "get-logged-in", G_CALLBACK (get_logged_in_cb), user_list);
if (load_accounts_user (user))
{
list_priv->users = g_list_insert_sorted (list_priv->users, user, compare_user);
if (emit_signal)
g_signal_emit (user_list, list_signals[USER_ADDED], 0, user);
}
else
g_object_unref (user);
}
static void
accounts_user_added_cb (GDBusConnection *connection,
const gchar *sender_name,
const gchar *object_path,
const gchar *interface_name,
const gchar *signal_name,
GVariant *parameters,
gpointer data)
{
CommonUserList *user_list = data;
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)")))
{
g_warning ("Got UserAccounts signal UserAdded with unknown parameters %s", g_variant_get_type_string (parameters));
return;
}
const gchar *path;
g_variant_get (parameters, "(&o)", &path);
/* Add user if we haven't got them */
CommonUser *user = get_user_by_path (user_list, path);
if (!user)
add_accounts_user (user_list, path, TRUE);
}
static void
accounts_user_deleted_cb (GDBusConnection *connection,
const gchar *sender_name,
const gchar *object_path,
const gchar *interface_name,
const gchar *signal_name,
GVariant *parameters,
gpointer data)
{
CommonUserList *user_list = data;
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)")))
{
g_warning ("Got UserAccounts signal UserDeleted with unknown parameters %s", g_variant_get_type_string (parameters));
return;
}
const gchar *path;
g_variant_get (parameters, "(&o)", &path);
/* Delete user if we know of them */
CommonUser *user = get_user_by_path (user_list, path);
if (user)
{
g_debug ("User %s deleted", path);
priv->users = g_list_remove (priv->users, user);
g_signal_emit (user_list, list_signals[USER_REMOVED], 0, user);
g_object_unref (user);
}
}
static CommonSession *
load_session (CommonUserList *user_list, const gchar *path)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
g_autoptr(GError) error = NULL;
g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.DisplayManager",
path,
"org.freedesktop.DBus.Properties",
"Get",
g_variant_new ("(ss)", "org.freedesktop.DisplayManager.Session", "UserName"),
G_VARIANT_TYPE ("(v)"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Error getting UserName from org.freedesktop.DisplayManager.Session: %s", error->message);
if (!result)
return NULL;
g_autoptr(GVariant) username = NULL;
g_variant_get (result, "(v)", &username);
if (!g_variant_is_of_type (username, G_VARIANT_TYPE_STRING))
return NULL;
const gchar *name;
g_variant_get (username, "&s", &name);
g_debug ("Loaded session %s (%s)", path, name);
CommonSession *session = g_object_new (common_session_get_type (), NULL);
session->username = g_strdup (name);
session->path = g_strdup (path);
priv->sessions = g_list_append (priv->sessions, session);
return session;
}
static void
session_added_cb (GDBusConnection *connection,
const gchar *sender_name,
const gchar *object_path,
const gchar *interface_name,
const gchar *signal_name,
GVariant *parameters,
gpointer data)
{
CommonUserList *user_list = data;
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)")))
{
g_warning ("Got DisplayManager signal SessionAdded with unknown parameters %s", g_variant_get_type_string (parameters));
return;
}
const gchar *path;
g_variant_get (parameters, "(&o)", &path);
CommonSession *session = load_session (user_list, path);
if (!session)
return;
CommonUser *user = get_user_by_name (user_list, session->username);
if (user)
g_signal_emit (user, user_signals[CHANGED], 0);
}
static void
session_removed_cb (GDBusConnection *connection,
const gchar *sender_name,
const gchar *object_path,
const gchar *interface_name,
const gchar *signal_name,
GVariant *parameters,
gpointer data)
{
CommonUserList *user_list = data;
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)")))
{
g_warning ("Got DisplayManager signal SessionRemoved with unknown parameters %s", g_variant_get_type_string (parameters));
return;
}
const gchar *path;
g_variant_get (parameters, "(&o)", &path);
for (GList *link = priv->sessions; link; link = link->next)
{
CommonSession *session = link->data;
if (strcmp (session->path, path) == 0)
{
g_debug ("Session %s removed", path);
priv->sessions = g_list_delete_link (priv->sessions, link);
CommonUser *user = get_user_by_name (user_list, session->username);
if (user)
g_signal_emit (user, user_signals[CHANGED], 0);
g_object_unref (session);
break;
}
}
}
static void
load_sessions (CommonUserList *user_list)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
priv->session_added_signal = g_dbus_connection_signal_subscribe (priv->bus,
"org.freedesktop.DisplayManager",
"org.freedesktop.DisplayManager",
"SessionAdded",
"/org/freedesktop/DisplayManager",
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
session_added_cb,
user_list,
NULL);
priv->session_removed_signal = g_dbus_connection_signal_subscribe (priv->bus,
"org.freedesktop.DisplayManager",
"org.freedesktop.DisplayManager",
"SessionRemoved",
"/org/freedesktop/DisplayManager",
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
session_removed_cb,
user_list,
NULL);
g_autoptr(GError) error = NULL;
g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.DisplayManager",
"/org/freedesktop/DisplayManager",
"org.freedesktop.DBus.Properties",
"Get",
g_variant_new ("(ss)", "org.freedesktop.DisplayManager", "Sessions"),
G_VARIANT_TYPE ("(v)"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Error getting session list from org.freedesktop.DisplayManager: %s", error->message);
if (result)
{
if (g_variant_is_of_type (result, G_VARIANT_TYPE ("(v)")))
{
g_autoptr(GVariant) value = NULL;
g_variant_get (result, "(v)", &value);
g_debug ("Loading sessions from org.freedesktop.DisplayManager");
g_autoptr(GVariantIter) iter = NULL;
g_variant_get (value, "ao", &iter);
const gchar *path;
while (g_variant_iter_loop (iter, "&o", &path))
load_session (user_list, path);
}
else
g_warning ("Unexpected type from org.freedesktop.DisplayManager.Sessions: %s", g_variant_get_type_string (result));
}
}
static void
load_users (CommonUserList *user_list)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
if (priv->have_users)
return;
priv->have_users = TRUE;
/* Get user list from accounts service and fall back to /etc/passwd if that fails */
priv->user_added_signal = g_dbus_connection_signal_subscribe (priv->bus,
"org.freedesktop.Accounts",
"org.freedesktop.Accounts",
"UserAdded",
"/org/freedesktop/Accounts",
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
accounts_user_added_cb,
user_list,
NULL);
priv->user_removed_signal = g_dbus_connection_signal_subscribe (priv->bus,
"org.freedesktop.Accounts",
"org.freedesktop.Accounts",
"UserDeleted",
"/org/freedesktop/Accounts",
NULL,
G_DBUS_SIGNAL_FLAGS_NONE,
accounts_user_deleted_cb,
user_list,
NULL);
g_autoptr(GError) error = NULL;
g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.Accounts",
"/org/freedesktop/Accounts",
"org.freedesktop.Accounts",
"ListCachedUsers",
g_variant_new ("()"),
G_VARIANT_TYPE ("(ao)"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Error getting user list from org.freedesktop.Accounts: %s", error->message);
if (result)
{
g_debug ("Loading users from org.freedesktop.Accounts");
g_autoptr(GVariantIter) iter = NULL;
g_variant_get (result, "(ao)", &iter);
const gchar *path;
while (g_variant_iter_loop (iter, "&o", &path))
add_accounts_user (user_list, path, FALSE);
}
else
{
g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_added_signal);
priv->user_added_signal = 0;
g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_removed_signal);
priv->user_removed_signal = 0;
load_passwd_file (user_list, FALSE);
/* Watch for changes to user list */
g_autoptr(GFile) passwd_file = g_file_new_for_path (PASSWD_FILE);
g_autoptr(GError) e = NULL;
priv->passwd_monitor = g_file_monitor (passwd_file, G_FILE_MONITOR_NONE, NULL, &e);
if (e)
g_warning ("Error monitoring %s: %s", PASSWD_FILE, e->message);
else
g_signal_connect (priv->passwd_monitor, "changed", G_CALLBACK (passwd_changed_cb), user_list);
}
}
/**
* common_user_list_get_length:
* @user_list: a #CommonUserList
*
* Return value: The number of users able to log in
**/
gint
common_user_list_get_length (CommonUserList *user_list)
{
g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), 0);
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
load_users (user_list);
return g_list_length (priv->users);
}
/**
* common_user_list_get_users:
* @user_list: A #CommonUserList
*
* Get a list of users to present to the user. This list may be a subset of the
* available users and may be empty depending on the server configuration.
*
* Return value: (element-type CommonUser) (transfer none): A list of #CommonUser that should be presented to the user.
**/
GList *
common_user_list_get_users (CommonUserList *user_list)
{
g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), NULL);
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
load_users (user_list);
return priv->users;
}
/**
* common_user_list_get_user_by_name:
* @user_list: A #CommonUserList
* @username: Name of user to get.
*
* Get information about a given user or #NULL if this user doesn't exist.
* Includes hidden and system users, unlike the list from
* common_user_list_get_users.
*
* Return value: (transfer full): A #CommonUser entry for the given user.
**/
CommonUser *
common_user_list_get_user_by_name (CommonUserList *user_list, const gchar *username)
{
g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), NULL);
g_return_val_if_fail (username != NULL, NULL);
load_users (user_list);
CommonUser *user = get_user_by_name (user_list, username);
if (user)
return g_object_ref (user);
/* Sometimes we need to look up users that aren't in AccountsService.
Notably we need to look up the user that the greeter runs as, which
is usually 'lightdm'. For such cases, we manually create a one-off
CommonUser object and pre-seed with passwd info. */
struct passwd *entry = getpwnam (username);
if (entry != NULL)
return make_passwd_user (user_list, entry);
return NULL;
}
static void
common_user_list_init (CommonUserList *user_list)
{
CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list);
priv->bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL);
}
static void
common_user_list_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
static void
common_user_list_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
CommonUserList *self = COMMON_USER_LIST (object);
switch (prop_id)
{
case LIST_PROP_NUM_USERS:
g_value_set_int (value, common_user_list_get_length (self));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
common_user_list_finalize (GObject *object)
{
CommonUserList *self = COMMON_USER_LIST (object);
CommonUserListPrivate *priv = common_user_list_get_instance_private (self);
/* Remove children first, they might access us */
g_list_free_full (priv->users, g_object_unref);
g_list_free_full (priv->sessions, g_object_unref);
if (priv->user_added_signal)
g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_added_signal);
if (priv->user_removed_signal)
g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_removed_signal);
if (priv->session_added_signal)
g_dbus_connection_signal_unsubscribe (priv->bus, priv->session_added_signal);
if (priv->session_removed_signal)
g_dbus_connection_signal_unsubscribe (priv->bus, priv->session_removed_signal);
g_object_unref (priv->bus);
g_clear_object (&priv->passwd_monitor);
G_OBJECT_CLASS (common_user_list_parent_class)->finalize (object);
}
static void
common_user_list_class_init (CommonUserListClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->set_property = common_user_list_set_property;
object_class->get_property = common_user_list_get_property;
object_class->finalize = common_user_list_finalize;
g_object_class_install_property (object_class,
LIST_PROP_NUM_USERS,
g_param_spec_int ("num-users",
"num-users",
"Number of login users",
0, G_MAXINT, 0,
G_PARAM_READABLE));
/**
* CommonUserList::user-added:
* @user_list: A #CommonUserList
* @user: The #CommonUser that has been added.
*
* The ::user-added signal gets emitted when a user account is created.
**/
list_signals[USER_ADDED] =
g_signal_new (USER_LIST_SIGNAL_USER_ADDED,
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (CommonUserListClass, user_added),
NULL, NULL,
NULL,
G_TYPE_NONE, 1, COMMON_TYPE_USER);
/**
* CommonUserList::user-changed:
* @user_list: A #CommonUserList
* @user: The #CommonUser that has been changed.
*
* The ::user-changed signal gets emitted when a user account is modified.
**/
list_signals[USER_CHANGED] =
g_signal_new (USER_LIST_SIGNAL_USER_CHANGED,
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (CommonUserListClass, user_changed),
NULL, NULL,
NULL,
G_TYPE_NONE, 1, COMMON_TYPE_USER);
/**
* CommonUserList::user-removed:
* @user_list: A #CommonUserList
* @user: The #CommonUser that has been removed.
*
* The ::user-removed signal gets emitted when a user account is removed.
**/
list_signals[USER_REMOVED] =
g_signal_new (USER_LIST_SIGNAL_USER_REMOVED,
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (CommonUserListClass, user_removed),
NULL, NULL,
NULL,
G_TYPE_NONE, 1, COMMON_TYPE_USER);
}
static gboolean
call_method (CommonUser *user, const gchar *method, GVariant *args,
const gchar *expected, GVariant **result)
{
CommonUserPrivate *priv = common_user_get_instance_private (user);
g_autoptr(GError) error = NULL;
g_autoptr(GVariant) answer = g_dbus_connection_call_sync (priv->bus,
"org.freedesktop.Accounts",
priv->path,
"org.freedesktop.Accounts.User",
method,
args,
G_VARIANT_TYPE (expected),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
if (error)
g_warning ("Could not call %s: %s", method, error->message);
if (!answer)
return FALSE;
if (result)
*result = g_steal_pointer (&answer);
return TRUE;
}
static void
save_string_to_dmrc (CommonUser *user, const gchar *group,
const gchar *key, const gchar *value)
{
g_autoptr(GKeyFile) dmrc = dmrc_load (user);
g_key_file_set_string (dmrc, group, key, value);
dmrc_save (dmrc, user);
}
/* Loads language/layout/session info for user */
static void
load_dmrc (CommonUser *user)
{
CommonUserPrivate *priv = common_user_get_instance_private (user);
/* We're using Accounts service instead */
if (priv->path)
return;
if (priv->loaded_dmrc)
return;
priv->loaded_dmrc = TRUE;
g_autoptr(GKeyFile) dmrc = dmrc_load (user);
// FIXME: Watch for changes
/* The Language field contains the locale */
g_free (priv->language);
priv->language = g_key_file_get_string (dmrc, "Desktop", "Language", NULL);
if (g_key_file_has_key (dmrc, "Desktop", "Layout", NULL))
{
g_strfreev (priv->layouts);
priv->layouts = g_malloc (sizeof (gchar *) * 2);
priv->layouts[0] = g_key_file_get_string (dmrc, "Desktop", "Layout", NULL);
priv->layouts[1] = NULL;
}
g_free (priv->session);
priv->session = g_key_file_get_string (dmrc, "Desktop", "Session", NULL);
}
/**
* common_user_get_name:
* @user: A #CommonUser
*
* Get the name of a user.
*
* Return value: The name of the given user
**/
const gchar *
common_user_get_name (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->name;
}
/**
* common_user_get_real_name:
* @user: A #CommonUser
*
* Get the real name of a user.
*
* Return value: The real name of the given user
**/
const gchar *
common_user_get_real_name (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->real_name;
}
/**
* common_user_get_display_name:
* @user: A #CommonUser
*
* Get the display name of a user.
*
* Return value: The display name of the given user
**/
const gchar *
common_user_get_display_name (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
if (!priv->real_name || strcmp (priv->real_name, "") == 0)
return priv->name;
else
return priv->real_name;
}
/**
* common_user_get_home_directory:
* @user: A #CommonUser
*
* Get the home directory for a user.
*
* Return value: The users home directory
*/
const gchar *
common_user_get_home_directory (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->home_directory;
}
/**
* common_user_get_shell:
* @user: A #CommonUser
*
* Get the shell for a user.
*
* Return value: The user's shell
*/
const gchar *
common_user_get_shell (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->shell;
}
/**
* common_user_get_image:
* @user: A #CommonUser
*
* Get the image URI for a user.
*
* Return value: The image URI for the given user or #NULL if no URI
**/
const gchar *
common_user_get_image (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->image;
}
/**
* common_user_get_background:
* @user: A #CommonUser
*
* Get the background file path for a user.
*
* Return value: The background file path for the given user or #NULL if no path
**/
const gchar *
common_user_get_background (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->background;
}
/**
* common_user_get_language:
* @user: A #CommonUser
*
* Get the language for a user.
*
* Return value: The language in the form of a local specification (e.g. "de_DE.UTF-8") for the given user or #NULL if using the system default locale.
**/
const gchar *
common_user_get_language (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
load_dmrc (user);
const gchar *language = priv->language;
return (language && language[0] == 0) ? NULL : language; /* Treat "" as NULL */
}
/**
* common_user_set_language:
* @user: A #CommonUser
* @language: The user's new language
*
* Set the language for a user.
**/
void
common_user_set_language (CommonUser *user, const gchar *language)
{
g_return_if_fail (COMMON_IS_USER (user));
if (g_strcmp0 (common_user_get_language (user), language) != 0)
{
call_method (user, "SetLanguage", g_variant_new ("(s)", language), "()", NULL);
save_string_to_dmrc (user, "Desktop", "Language", language);
}
}
/**
* common_user_get_layout:
* @user: A #CommonUser
*
* Get the keyboard layout for a user.
*
* Return value: The keyboard layout for the given user or #NULL if using system defaults. Copy the value if you want to use it long term.
**/
const gchar *
common_user_get_layout (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
load_dmrc (user);
return priv->layouts[0];
}
/**
* common_user_get_layouts:
* @user: A #CommonUser
*
* Get the configured keyboard layouts for a user.
*
* Return value: (transfer none): A NULL-terminated array of keyboard layouts for the given user. Copy the values if you want to use them long term.
**/
const gchar * const *
common_user_get_layouts (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
load_dmrc (user);
return (const gchar * const *) priv->layouts;
}
/**
* common_user_get_session:
* @user: A #CommonUser
*
* Get the session for a user.
*
* Return value: The session for the given user or #NULL if using system defaults.
**/
const gchar *
common_user_get_session (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), NULL);
CommonUserPrivate *priv = common_user_get_instance_private (user);
load_dmrc (user);
const gchar *session = priv->session;
return (session && session[0] == 0) ? NULL : session; /* Treat "" as NULL */
}
/**
* common_user_set_session:
* @user: A #CommonUser
* @session: The user's new session
*
* Set the session for a user.
**/
void
common_user_set_session (CommonUser *user, const gchar *session)
{
g_return_if_fail (COMMON_IS_USER (user));
if (g_strcmp0 (common_user_get_session (user), session) != 0)
{
call_method (user, "SetXSession", g_variant_new ("(s)", session), "()", NULL);
save_string_to_dmrc (user, "Desktop", "Session", session);
}
}
/**
* common_user_get_logged_in:
* @user: A #CommonUser
*
* Check if a user is logged in.
*
* Return value: #TRUE if the user is currently logged in.
**/
gboolean
common_user_get_logged_in (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), FALSE);
gboolean result;
g_signal_emit (user, user_signals[GET_LOGGED_IN], 0, &result);
return result;
}
/**
* common_user_get_has_messages:
* @user: A #CommonUser
*
* Check if a user has waiting messages.
*
* Return value: #TRUE if the user has waiting messages.
**/
gboolean
common_user_get_has_messages (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), FALSE);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->has_messages;
}
/**
* common_user_get_uid:
* @user: A #CommonUser
*
* Get the uid of a user
*
* Return value: The user's uid
**/
uid_t
common_user_get_uid (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), 0);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->uid;
}
/**
* common_user_get_gid:
* @user: A #CommonUser
*
* Get the gid of a user
*
* Return value: The user's gid
**/
gid_t
common_user_get_gid (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), 0);
/* gid is not actually stored in AccountsService, so if our user is from
AccountsService, we have to look up manually in passwd. gid won't
change, so just look up the first time we're asked and never again. */
CommonUserPrivate *priv = common_user_get_instance_private (user);
if (priv->uid != 0 && priv->gid == 0)
{
struct passwd *entry = getpwuid (priv->uid);
if (entry != NULL)
priv->gid = entry->pw_gid;
}
return priv->gid;
}
/**
* common_user_get_is_locked:
* @user: A #CommonUser
*
* Check if a user is locked.
*
* Return value: %TRUE if the user is locked.
**/
gboolean
common_user_get_is_locked (CommonUser *user)
{
g_return_val_if_fail (COMMON_IS_USER (user), FALSE);
CommonUserPrivate *priv = common_user_get_instance_private (user);
return priv->is_locked;
}
static void
common_user_init (CommonUser *user)
{
CommonUserPrivate *priv = common_user_get_instance_private (user);
priv->layouts = g_malloc (sizeof (gchar *) * 1);
priv->layouts[0] = NULL;
}
static void
common_user_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
static void
common_user_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
CommonUser *self = COMMON_USER (object);
switch (prop_id)
{
case USER_PROP_NAME:
g_value_set_string (value, common_user_get_name (self));
break;
case USER_PROP_REAL_NAME:
g_value_set_string (value, common_user_get_real_name (self));
break;
case USER_PROP_DISPLAY_NAME:
g_value_set_string (value, common_user_get_display_name (self));
break;
case USER_PROP_HOME_DIRECTORY:
g_value_set_string (value, common_user_get_home_directory (self));
break;
case USER_PROP_SHELL:
g_value_set_string (value, common_user_get_shell (self));
break;
case USER_PROP_IMAGE:
g_value_set_string (value, common_user_get_image (self));
break;
case USER_PROP_BACKGROUND:
g_value_set_string (value, common_user_get_background (self));
break;
case USER_PROP_LANGUAGE:
g_value_set_string (value, common_user_get_language (self));
break;
case USER_PROP_LAYOUT:
g_value_set_string (value, common_user_get_layout (self));
break;
case USER_PROP_LAYOUTS:
g_value_set_boxed (value, g_strdupv ((gchar **) common_user_get_layouts (self)));
break;
case USER_PROP_SESSION:
g_value_set_string (value, common_user_get_session (self));
break;
case USER_PROP_LOGGED_IN:
g_value_set_boolean (value, common_user_get_logged_in (self));
break;
case USER_PROP_HAS_MESSAGES:
g_value_set_boolean (value, common_user_get_has_messages (self));
break;
case USER_PROP_UID:
g_value_set_uint64 (value, common_user_get_uid (self));
break;
case USER_PROP_GID:
g_value_set_uint64 (value, common_user_get_gid (self));
break;
case USER_PROP_IS_LOCKED:
g_value_set_boolean (value, common_user_get_is_locked (self));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
common_user_finalize (GObject *object)
{
CommonUser *self = COMMON_USER (object);
CommonUserPrivate *priv = common_user_get_instance_private (self);
g_clear_pointer (&priv->path, g_free);
if (priv->changed_signal)
g_dbus_connection_signal_unsubscribe (priv->bus, priv->changed_signal);
g_clear_object (&priv->bus);
g_clear_pointer (&priv->name, g_free);
g_clear_pointer (&priv->real_name, g_free);
g_clear_pointer (&priv->home_directory, g_free);
g_clear_pointer (&priv->shell, g_free);
g_clear_pointer (&priv->image, g_free);
g_clear_pointer (&priv->background, g_free);
g_clear_pointer (&priv->language, g_free);
g_clear_pointer (&priv->layouts, g_strfreev);
g_clear_pointer (&priv->session, g_free);
}
static void
common_user_class_init (CommonUserClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->set_property = common_user_set_property;
object_class->get_property = common_user_get_property;
object_class->finalize = common_user_finalize;
g_object_class_install_property (object_class,
USER_PROP_NAME,
g_param_spec_string ("name",
"name",
"Username",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_REAL_NAME,
g_param_spec_string ("real-name",
"real-name",
"Users real name",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_DISPLAY_NAME,
g_param_spec_string ("display-name",
"display-name",
"Users display name",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
USER_PROP_HOME_DIRECTORY,
g_param_spec_string ("home-directory",
"home-directory",
"Home directory",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_SHELL,
g_param_spec_string ("shell",
"shell",
"Shell",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_IMAGE,
g_param_spec_string ("image",
"image",
"Avatar image",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_BACKGROUND,
g_param_spec_string ("background",
"background",
"User background",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_LANGUAGE,
g_param_spec_string ("language",
"language",
"Language used by this user",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
USER_PROP_LAYOUT,
g_param_spec_string ("layout",
"layout",
"Keyboard layout used by this user",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
USER_PROP_LAYOUTS,
g_param_spec_boxed ("layouts",
"layouts",
"Keyboard layouts used by this user",
G_TYPE_STRV,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
USER_PROP_SESSION,
g_param_spec_string ("session",
"session",
"Session used by this user",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
USER_PROP_LOGGED_IN,
g_param_spec_boolean ("logged-in",
"logged-in",
"TRUE if the user is currently in a session",
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_LOGGED_IN,
g_param_spec_boolean ("has-messages",
"has-messages",
"TRUE if the user is has waiting messages",
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_UID,
g_param_spec_uint64 ("uid",
"uid",
"Uid",
0,
G_MAXUINT64,
0,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_GID,
g_param_spec_uint64 ("gd",
"gid",
"Gid",
0,
G_MAXUINT64,
0,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
USER_PROP_IS_LOCKED,
g_param_spec_boolean ("is-locked",
"is-locked",
"TRUE if the user is currently locked",
FALSE,
G_PARAM_READABLE));
/**
* CommonUser::changed:
* @user: A #CommonUser
*
* The ::changed signal gets emitted this user account is modified.
**/
user_signals[CHANGED] =
g_signal_new (USER_SIGNAL_CHANGED,
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (CommonUserClass, changed),
NULL, NULL,
NULL,
G_TYPE_NONE, 0);
user_signals[GET_LOGGED_IN] =
g_signal_new ("get-logged-in",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
g_signal_accumulator_first_wins,
NULL,
NULL,
G_TYPE_BOOLEAN, 0);
}
static void
common_session_init (CommonSession *common_session)
{
}
static void
common_session_finalize (GObject *object)
{
CommonSession *self = COMMON_SESSION (object);
g_clear_pointer (&self->path, g_free);
g_clear_pointer (&self->username, g_free);
}
static void
common_session_class_init (CommonSessionClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = common_session_finalize;
}
ubuntu-lightdm-e42f6d6/common/user-list.h 0000664 0000000 0000000 00000007713 15235163047 0020512 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2010 Robert Ancell.
* Copyright (C) 2014 Canonical, Ltd.
* Authors: Robert Ancell
* Michael Terry
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2 or version 3 of the License.
* See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
*/
#ifndef COMMON_USER_LIST_H_
#define COMMON_USER_LIST_H_
#include
#include
G_BEGIN_DECLS
#define COMMON_TYPE_USER_LIST (common_user_list_get_type())
#define COMMON_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COMMON_TYPE_USER_LIST, CommonUserList));
#define COMMON_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COMMON_TYPE_USER_LIST, CommonUserListClass))
#define COMMON_IS_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COMMON_TYPE_USER_LIST))
#define COMMON_IS_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COMMON_TYPE_USER_LIST))
#define COMMON_USER_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COMMON_TYPE_USER_LIST, CommonUserListClass))
#define COMMON_TYPE_USER (common_user_get_type())
#define COMMON_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COMMON_TYPE_USER, CommonUser));
#define COMMON_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COMMON_TYPE_USER, CommonUserClass))
#define COMMON_IS_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COMMON_TYPE_USER))
#define COMMON_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COMMON_TYPE_USER))
#define COMMON_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COMMON_TYPE_USER, CommonUserClass))
#define USER_LIST_SIGNAL_USER_ADDED "user-added"
#define USER_LIST_SIGNAL_USER_CHANGED "user-changed"
#define USER_LIST_SIGNAL_USER_REMOVED "user-removed"
#define USER_SIGNAL_CHANGED "changed"
typedef struct
{
GObject parent_instance;
} CommonUser;
typedef struct
{
GObjectClass parent_class;
void (*changed)(CommonUser *user);
} CommonUserClass;
typedef struct
{
GObject parent_instance;
} CommonUserList;
typedef struct
{
GObjectClass parent_class;
void (*user_added)(CommonUserList *user_list, CommonUser *user);
void (*user_changed)(CommonUserList *user_list, CommonUser *user);
void (*user_removed)(CommonUserList *user_list, CommonUser *user);
} CommonUserListClass;
GType common_user_list_get_type (void);
GType common_user_get_type (void);
CommonUserList *common_user_list_get_instance (void);
void common_user_list_cleanup (void);
gint common_user_list_get_length (CommonUserList *user_list);
CommonUser *common_user_list_get_user_by_name (CommonUserList *user_list, const gchar *username);
GList *common_user_list_get_users (CommonUserList *user_list);
const gchar *common_user_get_name (CommonUser *user);
const gchar *common_user_get_real_name (CommonUser *user);
const gchar *common_user_get_display_name (CommonUser *user);
const gchar *common_user_get_home_directory (CommonUser *user);
const gchar *common_user_get_shell (CommonUser *user);
const gchar *common_user_get_image (CommonUser *user);
const gchar *common_user_get_background (CommonUser *user);
const gchar *common_user_get_language (CommonUser *user);
void common_user_set_language (CommonUser *user, const gchar *language);
const gchar *common_user_get_layout (CommonUser *user);
const gchar * const *common_user_get_layouts (CommonUser *user);
const gchar *common_user_get_session (CommonUser *user);
void common_user_set_session (CommonUser *user, const gchar *session);
gboolean common_user_get_logged_in (CommonUser *user);
gboolean common_user_get_has_messages (CommonUser *user);
uid_t common_user_get_uid (CommonUser *user);
gid_t common_user_get_gid (CommonUser *user);
gboolean common_user_get_is_locked (CommonUser *user);
G_END_DECLS
#endif /* COMMON_USER_LIST_H_ */
ubuntu-lightdm-e42f6d6/configure.ac 0000664 0000000 0000000 00000017712 15235163047 0017410 0 ustar 00root root 0000000 0000000 dnl Process this file with autoconf to produce a configure script.
AC_INIT(lightdm, 1.33.0)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AM_SILENT_RULES(yes)
AC_PROG_CC_C99
LT_INIT
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MKDIR_P
AM_MAINTAINER_MODE
dnl Check if the compiler really supports `-std=c99`.
if test "x$ac_cv_prog_cc_c99" = xno; then
AC_MSG_ERROR([$CC does not support '-std=c99'.])
fi
dnl Enable compile warnings (only supporting GCC)
if test "x$GCC" = xyes; then
WARN_CFLAGS="-Wall \
-Wstrict-prototypes \
-Wnested-externs \
-Werror=missing-prototypes \
-Werror=implicit-function-declaration \
-Werror=pointer-arith \
-Werror=init-self \
-Werror=format-security \
-Werror=format=2 \
-Werror=missing-include-dirs"
WARN_CXXFLAGS="-Wall"
fi
AC_SUBST(WARN_CFLAGS)
AC_SUBST(WARN_CXXFLAGS)
GOBJECT_INTROSPECTION_CHECK(0.9.5)
VAPIGEN_CHECK([0.16])
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
AC_CHECK_HEADERS(security/pam_appl.h, [], AC_MSG_ERROR(PAM not found))
AC_CHECK_HEADERS(gcrypt.h, [], AC_MSG_ERROR(libgcrypt not found))
AC_CHECK_FUNCS(setresgid setresuid setusercontext clearenv __getgroups_chk)
PKG_CHECK_MODULES(LIGHTDM, [
glib-2.0 >= 2.44
gio-2.0 >= 2.26
gio-unix-2.0
xdmcp
xcb
])
PKG_CHECK_MODULES(GLIB, [
glib-2.0
])
PKG_CHECK_MODULES(GIO, [
gio-2.0
])
PKG_CHECK_MODULES(GIO_UNIX, [
gio-unix-2.0
])
PKG_CHECK_MODULES(GOBJECT, [
gobject-2.0
])
PKG_CHECK_MODULES(XCB, [
xcb
])
PKG_CHECK_MODULES(LIBLIGHTDM_GOBJECT, [
glib-2.0 >= 2.44
gio-2.0 >= 2.26
gio-unix-2.0
gobject-2.0
libxklavier
x11
])
AC_ARG_ENABLE(liblightdm-qt5,
AS_HELP_STRING([--enable-liblightdm-qt5],[Enable LightDM client Qt5 libraries [[default=auto]]]),
[enable_liblightdm_qt5=$enableval],
[enable_liblightdm_qt5="auto"])
compile_liblightdm_qt5=no
if test x"$enable_liblightdm_qt5" != "xno"; then
PKG_CHECK_MODULES(LIBLIGHTDM_QT5, [
Qt5Core
Qt5DBus
Qt5Gui
],
[compile_liblightdm_qt5=yes],
[if test "x$enable_liblightdm_qt5" != xauto; then
AC_MSG_FAILURE(
[--enable-liblightdm-qt5 was given, but test for Qt5 failed])
fi
])
QT5_VALIDATE_MOC(MOC5)
if test x$MOC5 = x; then
compile_liblightdm_qt5=no
if test "x$enable_liblightdm_qt5" != xauto; then
AC_MSG_FAILURE(
[--enable-liblightdm-qt5 was given, but MOC not found])
fi
fi
if test x"$MOC5" = xmoc; then
if test x"$(readlink $(which $MOC5))" = xqtchooser; then
MOC5="$MOC5 --qt=5"
fi
fi
fi
AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT5, test x"$compile_liblightdm_qt5" != "xno")
AC_ARG_ENABLE(liblightdm-qt6,
AS_HELP_STRING([--enable-liblightdm-qt6],[Enable LightDM client Qt6 libraries [[default=auto]]]),
[enable_liblightdm_qt6=$enableval],
[enable_liblightdm_qt6="auto"])
compile_liblightdm_qt6=no
if test x"$enable_liblightdm_qt6" != "xno"; then
PKG_CHECK_MODULES(LIBLIGHTDM_QT6, [
Qt6Core
Qt6DBus
Qt6Gui
],
[compile_liblightdm_qt6=yes],
[if test "x$enable_liblightdm_qt6" != xauto; then
AC_MSG_FAILURE(
[--enable-liblightdm-qt6 was given, but test for Qt6 failed])
fi
])
QT6_VALIDATE_MOC(MOC6)
if test x$MOC6 = x; then
compile_liblightdm_qt6=no
if test "x$enable_liblightdm_qt6" != xauto; then
AC_MSG_FAILURE(
[--enable-liblightdm-qt6 was given, but MOC not found])
fi
fi
fi
AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT6, test x"$compile_liblightdm_qt6" != "xno")
AC_ARG_ENABLE([libaudit],
AS_HELP_STRING([--enable-libaudit],
[Enable libaudit logging of login and logout events [[default=auto]]]),
[enable_libaudit=$enableval],
[enable_libaudit=auto])
use_libaudit=no
if test x"$enable_libaudit" != "xno"; then
AC_CHECK_LIB([audit], [audit_log_user_message],
[use_libaudit=yes
AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support])
LIGHTDM_LIBS="${LIGHTDM_LIBS} -laudit"
],
[if test "x$enable_libaudit" != xauto; then
AC_MSG_FAILURE(
[--enable-libaudit was given, but test for libaudit failed])
fi
])
fi
AC_MSG_CHECKING(whether to build tests)
AC_ARG_ENABLE(tests,
AS_HELP_STRING([--disable-tests], [Disable tests building]),
[], [enable_tests="yes"])
AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno")
dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
DEFAULT_USER_SESSION=default
AC_ARG_WITH(user-session,
AS_HELP_STRING(--with-user-session=,
Session to use for user accounts),
if test x$withval != x; then
DEFAULT_USER_SESSION="$withval"
fi
)
AC_SUBST(DEFAULT_USER_SESSION)
AC_DEFINE_UNQUOTED(DEFAULT_USER_SESSION, "$DEFAULT_USER_SESSION", User session)
DEFAULT_GREETER_SESSION=default
AC_ARG_WITH(greeter-session,
AS_HELP_STRING(--with-greeter-session=,
Greeter session),
if test x$withval != x; then
DEFAULT_GREETER_SESSION="$withval"
fi
)
AC_SUBST(DEFAULT_GREETER_SESSION)
AC_DEFINE_UNQUOTED(DEFAULT_GREETER_SESSION, "$DEFAULT_GREETER_SESSION", Greeter session)
GREETER_USER=lightdm
AC_ARG_WITH(greeter-user,
AS_HELP_STRING(--with-greeter-user=,
User to run greeter as),
if test x$withval != x; then
GREETER_USER="$withval"
fi
)
AC_SUBST(GREETER_USER)
AC_DEFINE_UNQUOTED(GREETER_USER, "$GREETER_USER", User to run greeter as)
dnl ###########################################################################
dnl Documentation
dnl ###########################################################################
GTK_DOC_CHECK
YELP_HELP_INIT
dnl ###########################################################################
dnl Internationalization
dnl ###########################################################################
IT_PROG_INTLTOOL(0.35.0)
AC_SUBST(GETTEXT_PACKAGE, lightdm)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
AC_CONFIG_FILES([
Makefile
common/Makefile
data/Makefile
doc/Makefile
help/Makefile
liblightdm-gobject/liblightdm-gobject-1.pc
liblightdm-gobject/Makefile
liblightdm-qt/Makefile
liblightdm-qt/liblightdm-qt5-3.pc
liblightdm-qt/liblightdm-qt6-3.pc
po/Makefile.in
src/Makefile
tests/Makefile
tests/src/Makefile
tests/scripts/login-pam-config.conf
tests/scripts/login-pam.conf
tests/scripts/switch-to-greeter-return-session-pam.conf
])
AC_OUTPUT
dnl ###########################################################################
dnl Summary
dnl ###########################################################################
echo "
Light Display Manager $VERSION
===========================
prefix: $prefix
Greeter session: $DEFAULT_GREETER_SESSION
Greeter user: $GREETER_USER
User session: $DEFAULT_USER_SESSION
GObject introspection: $found_introspection
Vala bindings: $enable_vala
liblightdm-qt5: $compile_liblightdm_qt5
liblightdm-qt6: $compile_liblightdm_qt6
libaudit support: $use_libaudit
Enable tests: $enable_tests
"
ubuntu-lightdm-e42f6d6/data/ 0000775 0000000 0000000 00000000000 15235163047 0016023 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/Makefile.am 0000664 0000000 0000000 00000003330 15235163047 0020056 0 ustar 00root root 0000000 0000000 initdir = ${sysconfdir}/init
dist_init_DATA = init/lightdm.conf
confdir = $(sysconfdir)/lightdm
dist_conf_DATA = lightdm.conf users.conf keys.conf
dbusconfdir = $(datadir)/dbus-1/system.d
dist_dbusconf_DATA = org.freedesktop.DisplayManager.conf
pamdir = $(sysconfdir)/pam.d
dist_pam_DATA = pam/lightdm \
pam/lightdm-autologin \
pam/lightdm-greeter
completionsdir = $(datadir)/bash-completion/completions
dist_completions_DATA = bash-completion/dm-tool bash-completion/lightdm
lightdm-guest-session: $(srcdir)/apparmor/lightdm-guest-session.in
sed -e 's|@libexecdir[@]|$(libexecdir)|g' $< >$@
apparmor_profiledir = $(sysconfdir)/apparmor.d
apparmor_profile_DATA = \
lightdm-guest-session
apparmor_profile_abstractionsdir = $(apparmor_profiledir)/abstractions
dist_apparmor_profile_abstractions_DATA = \
apparmor/abstractions/lightdm \
apparmor/abstractions/lightdm_chromium-browser
accountsservice_interface = org.freedesktop.DisplayManager.AccountsService.xml
dbusdir = $(datadir)/dbus-1/interfaces
dist_dbus_DATA = \
$(accountsservice_interface)
# AccountsService requires D-Bus interfaces to be symlinked
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(datadir)/accountsservice/interfaces
$(LN_S) -f ../../dbus-1/interfaces/$(accountsservice_interface) $(DESTDIR)$(datadir)/accountsservice/interfaces/$(accountsservice_interface)
polkitdir = $(datadir)/polkit-1/actions
polkit_in_files = org.freedesktop.DisplayManager.AccountsService.policy.in
polkit_DATA = $(polkit_in_files:.policy.in=.policy)
@INTLTOOL_POLICY_RULE@
dist_man1_MANS = dm-tool.1 \
lightdm.1
EXTRA_DIST = apparmor/lightdm-guest-session.in $(polkit_in_files)
CLEANFILES = lightdm-guest-session $(polkit_DATA)
ubuntu-lightdm-e42f6d6/data/apparmor/ 0000775 0000000 0000000 00000000000 15235163047 0017644 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/ 0000775 0000000 0000000 00000000000 15235163047 0022340 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/lightdm 0000664 0000000 0000000 00000007076 15235163047 0023725 0 ustar 00root root 0000000 0000000 # vim:syntax=apparmor
# Profile for restricting lightdm guest session
# Author: Martin Pitt
# This abstraction provides the majority of the confinement for guest sessions.
# It is in its own abstraction so we can have a centralized place for
# confinement for the various lightdm sessions (guest, freerdp, uccsconfigure,
# etc). Note that this profile intentionally omits chromium-browser.
# Requires apparmor 2.9
#include
#include
#include
#include
#include
#include
#include
# bug in compiz https://launchpad.net/bugs/697678
/etc/compizconfig/config rw,
/etc/compizconfig/unity.ini rw,
/ r,
/bin/ rmix,
/{,usr/}bin/fusermount Px,
/bin/** rmix,
/cdrom/ rmix,
/cdrom/** rmix,
/dev/ r,
/dev/** rmw, # audio devices etc.
owner /dev/shm/** rmw,
/etc/ r,
/etc/** rmk,
/etc/gdm/Xsession ix,
/etc/X11/xdm/** ix, # needed for openSUSE's default session-wrapper
/etc/X11/xinit/** ix, # needed for openSUSE's default session-wrapper
/lib/ r,
/lib/** rmixk,
/lib32/ r,
/lib32/** rmixk,
/lib64/ r,
/lib64/** rmixk,
owner /{,run/}media/ r,
owner /{,run/}media/** rmwlixk, # we want access to USB sticks and the like
/opt/ r,
/opt/** rmixk,
@{PROC}/ r,
@{PROC}/* rm,
@{PROC}/[0-9]*/net/ r,
@{PROC}/[0-9]*/net/dev r,
@{PROC}/asound rm,
@{PROC}/asound/** rm,
@{PROC}/ati rm,
@{PROC}/ati/** rm,
@{PROC}/sys/vm/overcommit_memory r,
owner @{PROC}/** rm,
# needed for gnome-keyring-daemon
@{PROC}/*/status r,
# needed for bamfdaemon and utilities such as ps and killall
@{PROC}/*/stat r,
/sbin/ r,
/sbin/** rmixk,
/sys/ r,
/sys/** rm,
# needed for confined trusted helpers, such as dbus-daemon
/sys/kernel/security/apparmor/.access rw,
/tmp/ rw,
owner /tmp/** rwlkmix,
/usr/ r,
/usr/** rmixk,
/var/ r,
/var/** rmixk,
/var/guest-data/** rw, # allow to store files permanently
/var/tmp/ rw,
owner /var/tmp/** rwlkm,
/{,var/}run/ r,
# necessary for writing to sockets, etc.
/{,var/}run/** rmkix,
/{,var/}run/mir_socket rw,
/{,var/}run/screen/** wl,
/{,var/}run/shm/** wl,
/{,var/}run/uuidd/request w,
# libpam-xdg-support/logind
owner /{,var/}run/user/*/** rw,
capability ipc_lock,
# allow processes in the guest session to signal and ptrace each other
signal peer=@{profile_name},
ptrace peer=@{profile_name},
# needed when logging out of the guest session
signal (receive) peer=unconfined,
unix peer=(label=@{profile_name}),
unix (receive) peer=(label=unconfined),
unix (create),
unix (getattr, getopt, setopt, shutdown),
unix (bind, listen, accept, receive, send) type=stream addr="@/com/ubuntu/upstart-session/**",
unix (bind, listen) type=stream addr="@/tmp/dbus-*",
unix (bind, listen) type=stream addr="@/tmp/.ICE-unix/[0-9]*",
unix (bind, listen) type=stream addr="@/dbus-vfs-daemon/*",
unix (bind, listen) type=stream addr="@guest*",
unix (connect, receive, send) type=stream peer=(addr="@/tmp/dbus-*"),
unix (connect, receive, send) type=stream peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
unix (connect, receive, send) type=stream peer=(addr="@/dbus-vfs-daemon/*"),
unix (connect, receive, send) type=stream peer=(addr="@guest*"),
# silence warnings for stuff that we really don't want to grant
deny capability dac_override,
deny capability dac_read_search,
#deny /etc/** w, # re-enable once LP#697678 is fixed
deny /usr/** w,
deny /var/crash/ w,
ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/lightdm_chromium-browser 0000664 0000000 0000000 00000006372 15235163047 0027307 0 ustar 00root root 0000000 0000000 # vim:syntax=apparmor
# Profile abstraction for restricting chromium in the lightdm guest session
# Author: Jamie Strandboge
# The abstraction provides the additional accesses required to launch
# chromium based browsers from within an lightdm session. Because AppArmor
# cannot yet merge profiles and because we want to utilize the access rules
# provided in abstractions/lightdm, this abstraction must be separate from
# abstractions/lightdm.
# Requires apparmor 2.9
/usr/lib/chromium-browser/chromium-browser Cx -> chromium,
/usr/bin/webapp-container Cx -> chromium,
/usr/bin/webbrowser-app Cx -> chromium,
/usr/bin/ubuntu-html5-app-launcher Cx -> chromium,
/opt/google/chrome-stable/google-chrome-stable Cx -> chromium,
/opt/google/chrome-beta/google-chrome-beta Cx -> chromium,
/opt/google/chrome-unstable/google-chrome-unstable Cx -> chromium,
/opt/google/chrome/google-chrome Cx -> chromium,
# Allow ptracing processes in the chromium child profile
ptrace peer=/usr/lib/lightdm/lightdm-guest-session//chromium,
# Allow receiving and sending signals to processes in the chromium child profile
signal (receive, send) peer=/usr/lib/lightdm/lightdm-guest-session//chromium,
# Allow communications with chromium child profile via unix sockets
unix peer=(label=/usr/lib/lightdm/lightdm-guest-session//chromium),
profile chromium {
# Allow all the same accesses as other applications in the guest session
#include
# but also allow a few things because of chromium-browser's sandboxing that
# are not appropriate to other guest session applications.
owner @{PROC}/[0-9]*/oom_{,score_}adj w,
@{PROC}/sys/kernel/shmmax r,
capability sys_admin, # for sandbox to change namespaces
capability sys_chroot, # fod sandbox to chroot to a safe directory
capability setgid, # for sandbox to drop privileges
capability setuid, # for sandbox to drop privileges
capability sys_ptrace, # chromium needs this to keep track of itself
@{PROC}/sys/kernel/yama/ptrace_scope r,
# Allow ptrace reads of processes in the lightdm-guest-session
ptrace (read) peer=/usr/lib/lightdm/lightdm-guest-session,
# Allow other guest session processes to read and trace us
ptrace (readby, tracedby) peer=/usr/lib/lightdm/lightdm-guest-session,
ptrace (readby, tracedby) peer=@{profile_name},
# Allow us to receive and send signals from processes in the
# lightdm-guest-session
signal (receive, send) set=("exists", "term") peer=/usr/lib/lightdm/lightdm-guest-session,
# Allow us to receive and send on unix sockets from processes in the
# lightdm-guest-session
unix (receive, send) peer=(label=/usr/lib/lightdm/lightdm-guest-session),
@{PROC}/[0-9]*/ r, # sandbox wants these
@{PROC}/[0-9]*/fd/ r, # sandbox wants these
@{PROC}/[0-9]*/statm r, # sandbox wants these
@{PROC}/[0-9]*/task/[0-9]*/stat r, # sandbox wants these
owner @{PROC}/@{pid}/setgroups w,
owner @{PROC}/@{pid}/uid_map w,
owner @{PROC}/@{pid}/gid_map w,
/selinux/ r,
/usr/lib/chromium-browser/chromium-browser-sandbox ix,
/usr/lib/@{multiarch}/oxide-qt/chrome-sandbox ix,
/opt/google/chrome-*/chrome-sandbox ix,
}
ubuntu-lightdm-e42f6d6/data/apparmor/lightdm-guest-session.in 0000664 0000000 0000000 00000001436 15235163047 0024436 0 ustar 00root root 0000000 0000000 # vim:syntax=apparmor
# Profile for restricting lightdm guest session
#include
@libexecdir@/lightdm-guest-session {
# Most applications are confined via the main abstraction
#include
# chromium-browser needs special confinement due to its sandboxing
#include
# fcitx and friends needs special treatment due to C/S design
/usr/bin/fcitx ix,
/tmp/fcitx-socket-* rwl,
/dev/shm/* rwl,
/usr/bin/fcitx-qimpanel ix,
/usr/bin/sogou-qimpanel-watchdog ix,
/usr/bin/sogou-sys-notify ix,
/tmp/sogou-qimpanel:* rwl,
# Allow ibus
unix (bind, listen) type=stream addr="@tmp/ibus/*",
# mozc_server needs special treatment due to C/S design
unix (bind, listen) type=stream addr="@tmp/.mozc.*",
}
ubuntu-lightdm-e42f6d6/data/bash-completion/ 0000775 0000000 0000000 00000000000 15235163047 0021107 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/bash-completion/dm-tool 0000664 0000000 0000000 00000001744 15235163047 0022413 0 ustar 00root root 0000000 0000000 #-*- mode: shell-script;-*-
_dm_tool()
{
local cur prev opts
_init_completion || return
opts='switch-to-greeter switch-to-user switch-to-guest lock list-seats add-nested-seat add-local-x-seat add-seat'
case "$prev" in
switch-to-greeter)
return 0
;;
switch-to-user)
COMPREPLY=($(compgen -u -- "${cur}"))
return 0
;;
switch-to-guest)
# FIXME: session name
return 0
;;
lock)
return 0
;;
list-seats)
return 0
;;
add-nested-seat)
# FIXME ...
return 0
;;
add-local-x-seat)
# FIXME ...
return 0
;;
add-seat)
# FIXME ...
return 0
;;
*)
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi
COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
return 0
}
complete -F _dm_tool dm-tool
ubuntu-lightdm-e42f6d6/data/bash-completion/lightdm 0000664 0000000 0000000 00000000401 15235163047 0022455 0 ustar 00root root 0000000 0000000 #-*- mode: shell-script;-*-
_lightdm()
{
local cur prev opts
_init_completion || return
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi
}
complete -F _lightdm lightdm
ubuntu-lightdm-e42f6d6/data/dm-tool.1 0000664 0000000 0000000 00000004321 15235163047 0017460 0 ustar 00root root 0000000 0000000 .TH DM-TOOL 1 "7 November 2013"
.SH NAME
dm-tool \- a tool to control the display manager
.SH SYNOPSIS
.B dm-tool
[
.I OPTIONS
]
.I COMMAND
[
.I ARGS
]
.SH DESCRIPTION
.B dm-tool
is a tool to communicate with the LightDM display manager.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show help options
.TP
.B \-\-version
Show release version
.TP
.B \-\-session-bus
Attempt to connect to the display manager using the session bus.
This is useful if you are running a display manager in a test mode.
If this option is not present dm-tool will connect using the system bus.
.TP
The following commands are available:
.TP
.B switch-to-greeter
Switch to the greeter suitable for logging into a new session.
.TP
.B switch-to-user USERNAME [SESSION]
Switch to a user session.
If this user is already logged in then the display manager will switch to that session, otherwise a new session is started.
If authentication is required a greeter will start to collect this.
If the session option is provided then this session type will be used, otherwise the default for this user is used.
.TP
.B switch-to-guest [SESSION]
Switch to a guest session.
If the guest session is already active the display manager will switch to that session, otherwise the guest session is started.
If the session option is provided then this session type will be used, otherwise the default for the guest user is used.
.TP
.B lock
Lock the current seat.
This will switch to a greeter with a hint that the screen is locked.
You can return to this session by authenticating in the greeter.
.TP
.B list-seats
List the active seats and sessions that are running.
.TP
.B add-nested-seat
Start an X server inside a session and connect it to a display manager.
.TP
.B add-local-x-seat DISPLAY_NUMBER
Connect an existing X server to the display manager.
.TP
.B add-seat TYPE [NAME=VALUE...]
Add a dynamic seat.
.SH ENVIRONMENT
.TP
.B XDG_SEAT_PATH
Used by dm-tool to determine in which display manager session it's running. When executing
.B dm-tool
outside of a display-manager use its
.B list-seats
command to show active sessions and set the session to connect to with:
.B export XDG_SEAT_PATH=/org/freedesktop/DisplayManager/SeatX
where
.B SeatX
is one of the listed sessions.
.
.SH SEE ALSO
.BR lightdm (1)
ubuntu-lightdm-e42f6d6/data/init/ 0000775 0000000 0000000 00000000000 15235163047 0016766 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/init/lightdm.conf 0000664 0000000 0000000 00000000502 15235163047 0021262 0 ustar 00root root 0000000 0000000 # lightdm - LightDM display manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services
description "LightDM Display Manager"
author "Robert Ancell "
emits login-session-start
emits desktop-session-start
exec /usr/bin/lightdm
ubuntu-lightdm-e42f6d6/data/keys.conf 0000664 0000000 0000000 00000000050 15235163047 0017640 0 ustar 00root root 0000000 0000000 [keyring]
#a=0x0123456789ABCD
#b=secret
ubuntu-lightdm-e42f6d6/data/lightdm.1 0000664 0000000 0000000 00000002003 15235163047 0017530 0 ustar 00root root 0000000 0000000 .TH LIGHTDM 1 "7 November 2013"
.SH NAME
lightdm \- a display manager
.SH SYNOPSIS
.B lightdm
[
.I OPTION
]
.SH DESCRIPTION
.B lightdm
is a display manager.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show help options
.TP
.B \-c, \-\-config=FILE
Use configuration file
.TP
.B \-d, \-\-debug
Print debugging messages
.TP
.B \-\-test\-mode
Run as unprivileged user, skipping things that require root access
.TP
.B \-\-pid\-file=FILE
File to write PID into
.TP
.B \-\-xsessions\-dir=DIRECTORY
Directory to load X sessions from
.TP
.B \-\-xgreeters\-dir=DIRECTORY
Directory to load X greeters from
.TP
.B \-\-log\-dir=DIRECTORY
Directory to write logs to
.TP
.B \-\-run\-dir=DIRECTORY
Directory to store running state
.TP
.B \-\-cache\-dir=DIRECTORY
Directory to cached information
.TP
.B \-v, \-\-version
Show release version
.SH FILES
.TP
.B /etc/lightdm/lightdm.conf
Configuration
.TP
.B /etc/lightdm/users.conf
User list configuration (if not using Accounts Service)
.TP
.B /etc/lightdm/keys.conf
XDMCP keys
.SH SEE ALSO
.BR dm-tool (1)
ubuntu-lightdm-e42f6d6/data/lightdm.conf 0000664 0000000 0000000 00000014753 15235163047 0020334 0 ustar 00root root 0000000 0000000 #
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
# dbus-service = True if LightDM provides a D-Bus service to control it
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=true
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
#backup-logs=true
#dbus-service=true
#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (local, xremote)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false
#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=
#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=24
ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.AccountsService.policy.in 0000664 0000000 0000000 00000003030 15235163047 0030744 0 ustar 00root root 0000000 0000000
<_description>Set properties of own user
<_message>Authentication is required to set one's own greeter properties.
yes
yes
yes
<_description>Set properties of any user
<_message>Authentication is required to get another user's greeter properties.
yes
yes
yes
<_description>Set properties of any user
<_message>Authentication is required to set another user's greeter properties.
no
no
no
ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.AccountsService.xml 0000664 0000000 0000000 00000002136 15235163047 0027646 0 ustar 00root root 0000000 0000000
ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.conf 0000664 0000000 0000000 00000002375 15235163047 0024701 0 ustar 00root root 0000000 0000000
ubuntu-lightdm-e42f6d6/data/pam/ 0000775 0000000 0000000 00000000000 15235163047 0016600 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/data/pam/lightdm 0000664 0000000 0000000 00000000760 15235163047 0020156 0 ustar 00root root 0000000 0000000 #%PAM-1.0
# Block login if they are globally disabled
auth required pam_nologin.so
# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so
# Use /etc/passwd and /etc/shadow for passwords
auth required pam_unix.so
# Check account is active, change password if required
account required pam_unix.so
# Allow password to be changed
password required pam_unix.so
# Setup session
session required pam_unix.so
session optional pam_systemd.so
ubuntu-lightdm-e42f6d6/data/pam/lightdm-autologin 0000664 0000000 0000000 00000001154 15235163047 0022153 0 ustar 00root root 0000000 0000000 #%PAM-1.0
# Block login if shell in nologin or false
auth required pam_succeed_if.so shell notin /sbin/nologin:/usr/sbin/nologin:/bin/false:/usr/bin/false
# Block login if they are globally disabled
auth required pam_nologin.so
# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so
# Allow access without authentication
auth required pam_permit.so
# Stop autologin if account requires action
account required pam_unix.so
# Can't change password
password required pam_deny.so
# Setup session
session required pam_unix.so
session optional pam_systemd.so
ubuntu-lightdm-e42f6d6/data/pam/lightdm-greeter 0000664 0000000 0000000 00000000631 15235163047 0021606 0 ustar 00root root 0000000 0000000 #%PAM-1.0
# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so
# Always let the greeter start without authentication
auth required pam_permit.so
# No action required for account management
account required pam_permit.so
# Can't change password
password required pam_deny.so
# Setup session
session required pam_unix.so
session optional pam_systemd.so
ubuntu-lightdm-e42f6d6/data/users.conf 0000664 0000000 0000000 00000000722 15235163047 0020034 0 ustar 00root root 0000000 0000000 #
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin /sbin/nologin
ubuntu-lightdm-e42f6d6/debian/ 0000775 0000000 0000000 00000000000 15235163047 0016334 5 ustar 00root root 0000000 0000000 ubuntu-lightdm-e42f6d6/debian/50-disable-guest.conf 0000664 0000000 0000000 00000000230 15235163047 0022150 0 ustar 00root root 0000000 0000000 # Disable guest sessions due to them not being confined in systemd
# CVE-2017-8900
# https://bugs.launchpad.net/bugs/1663157
[Seat:*]
allow-guest=false
ubuntu-lightdm-e42f6d6/debian/50-disable-log-backup.conf 0000664 0000000 0000000 00000000114 15235163047 0023046 0 ustar 00root root 0000000 0000000 [LightDM]
# Disable log backup - we use logrotate instead
backup-logs=false
ubuntu-lightdm-e42f6d6/debian/50-greeter-wrapper.conf 0000664 0000000 0000000 00000000102 15235163047 0022531 0 ustar 00root root 0000000 0000000 [Seat:*]
greeter-wrapper=/usr/lib/lightdm/lightdm-greeter-session
ubuntu-lightdm-e42f6d6/debian/50-guest-wrapper.conf 0000664 0000000 0000000 00000000076 15235163047 0022235 0 ustar 00root root 0000000 0000000 [Seat:*]
guest-wrapper=/usr/lib/lightdm/lightdm-guest-session
ubuntu-lightdm-e42f6d6/debian/50-xserver-command.conf 0000664 0000000 0000000 00000000055 15235163047 0022537 0 ustar 00root root 0000000 0000000 [Seat:*]
# Dump core
xserver-command=X -core
ubuntu-lightdm-e42f6d6/debian/changelog 0000664 0000000 0000000 00000325666 15235163047 0020230 0 ustar 00root root 0000000 0000000 lightdm (1.32.0-0ubuntu1) UNRELEASED; urgency=medium
* New upstream release:
- Overwrite existing X authority files to avoid corruption
- Change logind-check-graphical default config value to true
- Block autologin if shell in nologin or false
- Fix failure if with greeters sending two login requests quickly.
- Drop Qt 4 support, it's been unsupported since 2015
- Fix lightdm_set_layout
- Improve method of determining a session is Wayland
- Don't call setenv with a NULL value - the behaviour is undefined
- Replace deprecated QAbstractItemModel::setRoleNames
- Move D-Bus conf file to $(datadir)/dbus-1/system.d
- Fix tests failing when compiled with --with-greeter-user
- Use Python 3 in tests
- Disable compiler optimizations for test programs
- Compilation fix for glibc 2.33
- Remove deprecated use of G_TYPE_INSTANCE_GET_PRIVATE, G_PARAM_PRIVATE
- Fix compile failure due to use of clearenv on FreeBSD
- Use a size_t to resolve a compile warning
- Fix DesktopManager typo in man page
* debian/lightdm.install:
- Update for new D-Bus config location
-- Robert Ancell Tue, 09 Aug 2022 12:30:51 +1200
lightdm (1.30.0-0ubuntu1) eoan; urgency=medium
* New upstream release:
- Add lightdm_user_get_is_locked ()
- Hide users with shell /bin/false
- Remove unity-system-compositor support (dead upstream)
- Fix dm-tool crash
- Update documentation
* debian/control:
* debian/copyright:
- Update links to GitHub
* debian/liblightdm-gobject-1-0.symbols:
- Updated
-- Robert Ancell Wed, 14 Aug 2019 14:18:58 +1200
lightdm (1.28.0-0ubuntu1) cosmic; urgency=medium
* New upstream release:
- Continue to shutdown session is removing X authority fails
- Set XDG_SEAT env variable in script hooks
- Fix small leak in XDMCP server
- liblightdm-qt: mark class PowerInterface as exported
- Fix one qt5 test being run instead of a qt4 one
- Remove use of deprecated g_type_class_add_private
- Modernize private data in objects
- Document XDG_SEAT_PATH in man page
- Fix install failing if link already exists
- Remove bashisms in configure.ac
-- Robert Ancell Thu, 30 Aug 2018 14:34:55 +1200
lightdm (1.26.0-0ubuntu2) cosmic; urgency=medium
* Cherrypick upstream PR to add support for usr-merge in apparmor
profile. LP: #1784023
-- Dimitri John Ledkov Tue, 21 Aug 2018 00:05:28 +0100
lightdm (1.26.0-0ubuntu1) bionic; urgency=medium
* debian/control:
- Drop obsolete gnome-common build-depends and use explicit depends instead
-- Robert Ancell Thu, 22 Mar 2018 12:12:06 +1300
lightdm (1.25.2-0ubuntu1) bionic; urgency=medium
* New upstream release:
- Fix incorrect use of ConsoleKit CanSuspend/Hibernate API
- Correctly install AccountsService interface file
- Fix build system to require C99
- Use standard format for arguments passed to qtchooser
* debian/lightdm.install:
- Install AccountsService D-Bus extension files
-- Robert Ancell Tue, 13 Feb 2018 16:33:14 +1300
lightdm (1.25.1-0ubuntu1) bionic; urgency=medium
* New upstream release:
- Fixes for VNC and XDMCP connections
- Use AccountsService extension system for extended greeter information
- Modernise code style
-- Robert Ancell Thu, 18 Jan 2018 09:43:40 +1300
lightdm (1.25.0-0ubuntu1) bionic; urgency=medium
* New upstream release:
- Support moc being called moc-qt5 (e.g. Fedora)
- Fail configure if MOC can't be found
- Expose autologin-session as a hint to the greeter
- Fix timed autologins not using autologin-session when no session specified
* debian/control:
- Use standards version 4.1.1
- Fix package sections
- Fix introspection dependencies
- Use recent debhelper
* debian/liblightdm-gobject-1-0.symbols:
* debian/liblightdm-qt-3-0.symbols:
* debian/liblightdm-qt5-3-0.symbols:
- Updated
* debian/watch:
- Update to use github for tarballs
-- Robert Ancell Mon, 20 Nov 2017 15:38:13 +1300
lightdm (1.24.0-0ubuntu1) artful; urgency=medium
* New upstream release:
- No changes from 1.22
-- Robert Ancell Tue, 05 Sep 2017 10:42:34 +1200
lightdm (1.22.0-0ubuntu6) artful; urgency=medium
* debian/lightdm.config: When upgrading to this version, don't show the DM
selection prompt. We're trying to suppress the prompt and switch Ubuntu
desktop users to gdm3 smoothly, but lightdm's prompt is showing up as gdm3
is on the system when lightdm.config is executed. This means that if there
is a situation when upgraders to this version *should* be shown the
prompt, they won't be. If that is the case, we'll need to think again
about how to implement this.
-- Iain Lane Tue, 18 Jul 2017 10:21:45 +0100
lightdm (1.22.0-0ubuntu5) artful; urgency=medium
* Change back the default session to 'ubuntu', as it now corresponds to
GNOME Shell one with our ubuntu changes.
-- Didier Roche Tue, 20 Jun 2017 12:14:37 +0200
lightdm (1.22.0-0ubuntu4) artful; urgency=medium
* SECURITY UPDATE: Guest session not confined (LP: #1663157)
- debian/50-disable-guest.conf:
- debian/lightdm.install:
- Disable guest sessions by default, this can be overridden by custom
configuration (e.g. /etc/lightdm/lightdm.conf)
- CVE-2017-8900
-- Robert Ancell Mon, 19 Jun 2017 16:32:24 +1200
lightdm (1.22.0-0ubuntu3) artful; urgency=medium
* Change the default session to `gnome' (Shell).
-- Iain Lane Tue, 06 Jun 2017 18:40:05 +0100
lightdm (1.22.0-0ubuntu2) zesty; urgency=medium
* SECURITY UPDATE: Directory traversal allowing arbitrary directory
ownership and privilege escalation (LP: #1677924)
- debian/guest-account.sh: Detect existing malicious guest user home dirs
before proceeding with guest user creation
- CVE-2017-7358
-- Robert Ancell Wed, 05 Apr 2017 10:34:32 +1200
lightdm (1.22.0-0ubuntu1) zesty; urgency=medium
* Allow guest sessions to talk to Mir (allowing unity8)
-- Robert Ancell Wed, 22 Mar 2017 09:46:38 +1300
lightdm (1.21.5-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Fix logic that checked if a session was being stopped.
This fixes a race condition that could cause logging into an existing
session from a greeter to not return to that session. (LP: #1656399)
-- Robert Ancell Wed, 22 Feb 2017 12:38:50 +1300
lightdm (1.21.4-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Use power management functions from ConsoleKit2 if available.
- Correctly pass return value from sessions to LightDM.
- Retry VT_WAITACTIVE if we get EINTR.
- Ignore SIGHUP by default.
- Use SA_RESTART with SIGPIPE.
- liblightdm-qt: Use liblightdm-gobject power methods instead of
re-implementing in Qt.
* debian/liblightdm-qt-3-0.symbols:
* debian/liblightdm-qt5-3-0.symbols:
- Add symbols files for C++ libraries
-- Robert Ancell Mon, 13 Feb 2017 16:31:48 +1300
lightdm (1.21.3-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Fix crashes introduced in 1.21.2 due to environment variable changes
- Fix incorrect unref in XDMCP server code
- Fix logging warning
-- Robert Ancell Fri, 09 Dec 2016 14:04:49 +1300
lightdm (1.21.2-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Use SA_RESTART on signals so we don't get interrupted reads (LP: #1648637)
- Use logind to terminate greeter sessions if it is available
- Load greeters from XDG_DATA_DIRS instead of compile time value
- Allow D-Bus interface to be disabled
- Always pass through LD_PRELOAD, LD_LIBRARY_PATH and PATH to
sessions/display servers
* debian/patches/terminate-session.patch:
- Merged upstream
-- Robert Ancell Fri, 09 Dec 2016 10:51:07 +1300
lightdm (1.21.1-0ubuntu2) zesty; urgency=medium
Restore patch from 1.20.0-0ubuntu3:
* Add debian/patches/terminate-session.patch: Terminate leftover processes
in greeter session. It can happen that the greeter session does not
properly clean up itself on logout. This causes leaked processes like
settings-daemon which act on the user session as they share the same
$DISPLAY. Ask logind to terminate remaining processes in the greeter
session on closing, which is more robust than trying to fix every greeter.
(LP: #1637758)
-- Martin Pitt Tue, 22 Nov 2016 09:43:39 +0100
lightdm (1.21.1-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Fix greeters crashing with unknown configuration keys (regression from
1.21.0) (LP: #1643276)
- Add an API version to the greeter-daemon protocol for future enhancements
- More regression tests
-- Robert Ancell Wed, 23 Nov 2016 09:47:00 +1300
lightdm (1.21.0-0ubuntu1) zesty; urgency=medium
* New upstream release:
- Add liblightdm functions for getting OS release information and the
message of the day.
- Warn if we find unknown keys in configuration.
- Fix .profile errors not showing in .xsession-errors log. (LP: #1639533)
- Remove duplicate Qt property in liblightdm.
- Fix and improve liblightdm API documentation.
- Minor GIR annotation fixes.
* debian/liblightdm-gobject-1-0.symbols:
- Updated
-- Robert Ancell Mon, 14 Nov 2016 11:40:20 +1300
lightdm (1.20.0-0ubuntu2) zesty; urgency=medium
* debian/lightdm-greeter-session: Don't launch another session D-Bus if one
is already running (usually from dbus-user-session).
-- Martin Pitt Tue, 25 Oct 2016 21:35:30 +0200
lightdm (1.20.0-0ubuntu1) yakkety; urgency=medium
* New upstream release:
- Use stable version number (no other changes)
-- Robert Ancell Sat, 15 Oct 2016 18:14:22 +1300
lightdm (1.19.5-0ubuntu1) yakkety; urgency=medium
* New upstream release:
- Fix errors in documentation generation
- Improve documentation
- Fix guest AppArmor profile to allow guest sessions more access to the
upstart session socket (LP: #1627304)
- Fix small memory leak in liblightdm-gobject keyboard layout code
* debian/control:
- Drop duplicate dependency on gobject-introspection
- Alphabetically order dependencies
* debian/guest-session-auto.sh:
- Don't show guest session dialog in MATE (LP: #1627395)
-- Robert Ancell Fri, 30 Sep 2016 14:56:00 +1300
lightdm (1.19.4-0ubuntu1) yakkety; urgency=medium
* New upstream release:
- Fix various issues in new in-session greeter code
- Fix user list memory management exposed by use of in-session greeters
- Fix some spurious warnings in the log
-- Robert Ancell Fri, 12 Aug 2016 11:07:57 +1200
lightdm (1.19.3-0ubuntu1) yakkety; urgency=medium
* New upstream release:
- Fix in-session greeters not working for greeter logins
* debian/control:
- Use standards version 3.9.8
-- Robert Ancell Tue, 12 Jul 2016 10:10:41 +1200
lightdm (1.19.2-0ubuntu1) yakkety; urgency=medium
* New upstream release:
* Add support for greeters running inside sessions. This is enabled by
setting X-LightDM-Allow-Greeter inside the session .desktop file.
The session can then use liblightdm to connect one greeter to the
daemon. The communication is done using a socket
(/var/run/lightdm//greeter-socket) that is accessible to any
process run by that user. Consider controlling access to this socket
using a MAC system such as AppArmor. (LP: #1582242)
* Report errors for all liblightdm methods. This will require existing
greeters to update their API usage. The ABI is unchanged.
* Handle EAGAIN correctly when daemons communicate with the daemon.
* Drop support for mir-container sessions - no-one ever used these.
* debian/liblightdm-gobject-1-0.symbols:
- Updated
-- Robert Ancell Wed, 29 Jun 2016 15:29:17 +1200
lightdm (1.19.1-0ubuntu1) yakkety; urgency=medium
* New upstream release:
* debian/lightdm.dirs:
- Rename "xlocal" seat type to "local". Using "xlocal" will continue to work
but report a warning.
- Ensure user configuration directories /etc/lightdm/lightdm.conf.d and
/etc/guest-session exist
- Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor
socket to sessions. This used to work but no longer works in Mir 0.21
(LP: #1583624)
- Allow XMir to run on the xlocal seat using the new x-server-backend=mir
option
- Use only a single compositor on local seats (LP: #1594229)
- Fix Mir greeter log filename having "(null)" in the name (LP: #1590582)
- Copy fcitx/mozc rules so session works when these aren't installed
(LP #1581187)
- Revert lxsession change - it caused the AppArmor to fail to compile
* debian/rules:
- Revert dh_installinit change - we don't want to start LightDM on install
(LP: #1581106)
* debian/guest-account.sh:
* debian/guest-session-setup.sh:
- Source prefs.sh as privileged user to allow user modification
(LP: #1581853)
-- Robert Ancell Mon, 20 Jun 2016 16:18:36 +1200
lightdm (1.19.0-0ubuntu1) yakkety; urgency=medium
* New upstream release:
- Use /dev/tty0 instead of /dev/console for VT operations (LP: #1566073)
- Don't quit on SIGUSR1, SIGUSR2 or SIGHUP (LP: #960157)
- Improve XDMCP IPv6 address selection (LP: #1575200)
- Set XDMCP hostname field in to system hostname or configured value
(LP: #1578442)
- Allow fcitx and mozc to run in guest session (LP: #1509829)
- Fix lxsession running in guest session
- Drop support for legacy XMir
- Fix g_spawn compiler warning
* debian/rules:
- Fix usage of dh_installinit (LP: #1292990)
-- Robert Ancell Thu, 05 May 2016 12:23:45 +1200
lightdm (1.18.0-0ubuntu2) xenial; urgency=medium
* debian/control:
- Set libaudit and plymouth dependencies to linux-any (LP: #1563036)
-- Robert Ancell Tue, 29 Mar 2016 12:05:24 +1300
lightdm (1.18.0-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Small documentation fixes
* debian/guest-account.sh:
- More forcibly remove guest sessions so they don't remain after logout
(LP: #1556516)
-- Robert Ancell Wed, 23 Mar 2016 15:09:54 +1300
lightdm (1.17.6-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Don't write $DISPLAY into tty line in utmp/btmp. (LP: #1380364)
* debian/guest-account.sh:
* debian/guest-session.profile:
* debian/rules:
- Don't overwrite .profile file from skeleton session, append it instead
-- Robert Ancell Tue, 15 Mar 2016 15:47:08 +1300
lightdm (1.17.5-0ubuntu2) xenial; urgency=medium
* debian/control:
- Fix liblightdm-qt5-3-dev to depend on qtbase5-dev, not libqt4-dev
-- Michael Terry Wed, 03 Feb 2016 13:45:53 -0500
lightdm (1.17.5-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Set XDG_RUNTIME_DIR for ConsoleKit sessions. This is a recent change in
ConsoleKit2.
* debian/lightdm.postrm:
- Don't remove the lightdm user home directory on purge since we no longer
remove the user account. (LP: #1540933)
-- Robert Ancell Wed, 03 Feb 2016 12:55:04 +1300
lightdm (1.17.4-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Add support for g_autoptr and liblightdm-gobject
- Fix dm-tool add-local-seat not working because LightDM is trying to
connect with TCP/IP (LP: #1529454)
-- Robert Ancell Mon, 25 Jan 2016 17:13:18 +1300
lightdm (1.17.3-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Don't enable the hardware cursor in Unity System Compositor anymore.
Unity 8 now correctly provides its own cursor and other shells should too
(LP: #1517615)
* debian/guest-session.profile:
- Fix guest session dialog sleep (LP: #1526004)
-- Robert Ancell Thu, 17 Dec 2015 13:12:24 +1300
lightdm (1.17.2-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Handle XDMCP Request packet with no addresses. (LP: #1516831)
- Don't start LightDM if the XDMCP server is configured with a key that
doesn't exist. (LP: #1517685)
- Add IP addresses to XDMCP log messages.
- Refactor XDMCP error handling.
- Add more XDMCP tests.
-- Robert Ancell Fri, 20 Nov 2015 15:34:08 +1300
lightdm (1.17.1-0ubuntu2) xenial; urgency=medium
* debian/guest-session-setup.sh:
- don't error out if there is no prefs.sh configuration,
should fix the guest session not starting in xenial (lp: #1515704)
-- Sebastien Bacher Fri, 13 Nov 2015 11:52:06 +0100
lightdm (1.17.1-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Add a backup-logs option that can be used to disable existing logging
files having a .old suffix added to them.
- Add LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEASUREMENT and
LC_IDENTIFICATION variables to the list of inherited locale variables.
(LP: #1511259)
- Implement XDMCP ForwardQuery. (LP: #1511545)
- Fix small memory leak in XDMCP logging code.
-- Robert Ancell Tue, 03 Nov 2015 16:28:54 +1300
lightdm (1.17.0-0ubuntu1) xenial; urgency=medium
* New upstream release:
- Disable log backups - this interferes with logrotate.
- Support using libaudit to generate audit events.
- Handle trailing whitespace on boolean values in configuration.
- Update example configuration to more correctly match allowed options.
- Fix unnecessary X server from being launched when locking seats.
- Check the version of the X server we are running so we correctly pass
-listen tcp when required.
- Allow reading /proc//net/dev from within a guest session.
(LP: #1442609)
- Allow guest sessions to write in /{,var/}run/screen folder.
(LP: #1442611)
- Update guest-session AppArmor profile to be suitable for openSUSE.
- Fix apparmor profiles for running Chromium in guest sessions.
(LP: #1504049, LP: #1464958)
- Fix configure failing without Vala installed.
* Build with multi-arch
* debian/lightdm.logrotate:
- Use logrotate to handle log files placed in the default system log
directory (/var/log/lightdm).
* debian/guest*:
- Optimize guest account creation, use OverlayFS of AuFS if available.
-- Robert Ancell Wed, 28 Oct 2015 15:02:46 +1300
lightdm (1.16.0-0ubuntu1) wily; urgency=medium
* New upstream release:
- Update default configuration better explaining the seat configuration name
matching and dropping references to the obsolete [SeatDefaults] section
-- Robert Ancell Mon, 07 Sep 2015 10:52:54 +1200
lightdm (1.15.3-0ubuntu3) wily; urgency=medium
* debian/lightdm.postrm:
- Don't remove the lightdm user/group on package removal. This fails if the
user is still in use and leaves the risk of another user being created
with the same UID. (LP: #924224)
-- Robert Ancell Wed, 26 Aug 2015 09:35:56 +0100
lightdm (1.15.3-0ubuntu2) wily; urgency=medium
* debian/lightdm.lightdm-greeter.pam:
* debian/lightdm.pam:
- Load pam_kwallet5 in pam profile (kwallet and kwallet5 are distinct
entities requiring sepreate unlocking)
-- Harald Sitter Mon, 24 Aug 2015 12:50:00 +0200
lightdm (1.15.3-0ubuntu1) wily; urgency=medium
* New upstream release:
- Drop Xorg option -sharevts. It's no longer required for non-seat0 X
servers since xorg-server release 1.16.
* debian/patches/autologin-session-workaround.patch:
- Workaround faulty setting from user-setup package (LP: #1484083)
-- Robert Ancell Mon, 17 Aug 2015 10:39:27 +1200
lightdm (1.15.2-0ubuntu2) wily; urgency=medium
* debian/control:
- Add build-depends on valac
-- Robert Ancell Mon, 10 Aug 2015 16:38:04 +1200
lightdm (1.15.2-0ubuntu1) wily; urgency=medium
[ Robert Ancell ]
* New upstream release:
- Support Wayland sessions. (LP: #888391)
- Implement autologin-session option.
- Generate Vala bindings from GIR instead of manually writing them. This
fixes some small bugs in both the Vala and GIR bindings.
- Don't remove autotools generated files in distclean.
* debian/control:
- Use standards version 3.9.6
* debian/liblightdm-gobject-1-0.symbols:
- Updated
[ Gunnar Hjalmarsson ]
* debian/lightdm-session:
- Prevent ~/.bashrc from being sourced when ~/.profile is sourced.
(LP: #1482641)
-- Robert Ancell Mon, 10 Aug 2015 16:11:13 +1200
lightdm (1.15.1-0ubuntu2) wily; urgency=medium
* debian/guest-session-auto.sh:
- Disable screenlocks for guest sessions on MATE, XFCE, Pantheon
(LP: #1481804)
* debian/control:
- Switch build-depends from transitional libgcrypt11-dev to libgcrypt20-dev
-- Robert Ancell Fri, 07 Aug 2015 12:50:38 +1200
lightdm (1.15.1-0ubuntu1) wily; urgency=medium
* New upstream release:
- Fix default X server command set to XMir in 1.15.0.
- Internally merge the [SeatDefaults] and [Seat:*] sections together. The
previous method meant configuration snippets using a mix of old and new
naming would not correctly override eachother.
- Use IP address of XDMCP requests to contact X server if available.
(LP: #1481561)
- Add an option for XDMCP and VNC servers to only listen on one address.
(LP: #1390808)
- Fix configuration file warnings so they go to the log, not stderr.
- Warn if deprecated options logind-load-seats or xdg-seat are in
configuration. (LP: #1468057)
- Improve IP addresses in XDMCP log messages.
- Fix typo in dm-tool man page. (LP: #1470587)
-- Robert Ancell Wed, 05 Aug 2015 16:53:39 +1200
lightdm (1.15.0-0ubuntu1) wily; urgency=medium
* New upstream release:
- Deprecate [SeatDefaults] in favour of [Seat:*]
- Use new Xmir binary when running X under Unity System Compositor
-- Robert Ancell Mon, 18 May 2015 13:38:23 +1200
lightdm (1.14.0-0ubuntu2) vivid; urgency=medium
* Quiesce initctl errors when not running under upstart. (LP: #1414420)
-- Martin Pitt Wed, 08 Apr 2015 14:37:17 +0200
lightdm (1.14.0-0ubuntu1) vivid; urgency=medium
* New upstream release:
- Initialize file descriptor handles so we don't attempt to close stdin by
accident.
- Fix small errors detected by scan-build (clang).
-- Robert Ancell Tue, 24 Mar 2015 10:25:22 +1300
lightdm (1.13.2-0ubuntu1) vivid; urgency=medium
* New upstream release:
- Fix pipe file descriptor leak for each greeter session. (LP: #1190344)
- Support active session changing via logind. (LP: #1371378)
- Don't allow liblightdm-gobject to be disabled. It is required for
liblightdm-qt and the tests so it's not worth supporting builds without
it.
- Add bash autocompletion support
* debian/lightdm.install:
- Install autocompletion configuration
-- Robert Ancell Tue, 10 Mar 2015 14:54:29 +1300
lightdm (1.13.1-0ubuntu2) vivid; urgency=medium
* debian/guest-account.sh:
- Rename variables to make script compatible with Bash (LP: #1411100)
* debian/control:
- Set required version of bash
-- Robert Ancell Wed, 21 Jan 2015 12:20:42 +1300
lightdm (1.13.1-0ubuntu1) vivid; urgency=medium
* New upstream release:
- Don't attempt generate D-Bus seat/session removal signals on shutdown.
- Add missing method QLightDM::Greeter::cancelAutologin
-- Robert Ancell Wed, 14 Jan 2015 14:00:02 +1300
lightdm (1.13.0-0ubuntu2) vivid; urgency=medium
* debian/config-error-dialog.sh:
* debian/lightdm-session:
- Use bash for the session to improve error handling (LP: #678421)
* debian/control:
- Depend on bash
-- Robert Ancell Tue, 25 Nov 2014 11:28:11 +1300
lightdm (1.13.0-0ubuntu1) vivid; urgency=medium
* New upstream release:
- Fix crash when having configuration keys defined in multiple places
(LP: #1377373)
- Fix pipe file descriptor leak for each session login / authentication
(LP: #1190344)
- Use correct syntax for DesktopNames key in session files (LP: #1383321)
- Match seat configuration with globbing (LP: #1364911)
- Allow user switching in multi-seat until bug stopping greeter showing on
logout is fixed
- Disable log message when AccountsService users change (LP: #1376357)
- Update AppArmor scripts, requires AppArmor 2.9
- Update tests to run better on servers
* debian/config-error-dialog.sh:
- Show warning dialog instead of interrupted login if syntax error in
~/.profile etc (LP: #678421)
-- Robert Ancell Thu, 13 Nov 2014 11:08:17 +1300
lightdm (1.12.0-0ubuntu2) utopic; urgency=medium
* Restore 1.11.9-0ubuntu2, it was reverted by error in the previous upload
-- Sebastien Bacher Tue, 30 Sep 2014 11:25:09 +0200
lightdm (1.12.0-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Fix assumption that the display server is X when running scripts.
(LP: #1305006)
- Don't access .dmrc files until information from these files is required.
(LP: #1370852)
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
- Dropped, Unity 2D doesn't exist and all users will have been migrated in
14.04 LTS
-- Robert Ancell Tue, 30 Sep 2014 15:11:51 +1300
lightdm (1.11.9-0ubuntu2) utopic; urgency=medium
* debian/patches/06_apparmor-unix.patch: update for addr= rules
* debian/patches/07_apparmor-chrome.patch:
- allow new path to Google Chrome (LP: #1361372)
- allow read of @{PROC}/[0-9]*/statm
* debian/patches/08_apparmor-updates.patch:
- allow 'rw' on /etc/compizconfig/unity.ini (continue workaround for
LP: 697678)
- allow read of @{PROC}/sys/vm/overcommit_memory
- allow write to /run/uuidd/request
-- Jamie Strandboge Thu, 18 Sep 2014 12:18:12 -0500
lightdm (1.11.9-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Don't check the logind CanGraphical seat property unless
login-check-graphical option is set to true. There are too many cases of
drivers that don't set the appropriate flags for this feature to work.
(LP: #1365336)
- Make socket writing code used between greeter and daemon more robust to
errors.
- Fix small memory leaks.
- Improve logging messages.
- Test improvements.
-- Robert Ancell Wed, 10 Sep 2014 15:47:36 +1200
lightdm (1.11.8-0ubuntu2) utopic; urgency=medium
* debian/patches/06_apparmor-unix.patch: updates for unix socket mediation
(LP: #1362199)
-- Jamie Strandboge Fri, 05 Sep 2014 17:34:03 -0500
lightdm (1.11.8-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Rework logind code that gets session ID. The previous method was racy
and a change in lightdm 1.11.7 led to a lockup when this race occurred.
(LP: #1364725)
- Handle CanGraphical property on logind seats
-- Robert Ancell Wed, 03 Sep 2014 17:26:36 +1200
lightdm (1.11.7-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Use logind to provide the list of seats to use. Deprecate the old method
of manually defining seats.
- Add --show-config option that shows combined configuration.
- Drop the surfaceflinger seat type. This was a temporary solution while
Ubuntu Phone was migrating to Mir.
-- Robert Ancell Wed, 27 Aug 2014 16:25:53 +1200
lightdm (1.11.6-0ubuntu1) utopic; urgency=medium
* New upstream release:
* Add a seat option 'allow-user-switching' that can disable all user
switching for that seat
* Add a new session type 'mir-container' that allows the session to run
inside a custom system compositor (LP: #1359332)
* Only seat0 takes VT from Plymouth
* Removed unused GAsyncResultIface.is_tagged as this attribute was not
available in earlier versions of Glib I/O.
* Abort autogen if yelp-tools not installed
* Return correct errors for D-Bus calls
-- Robert Ancell Fri, 22 Aug 2014 09:10:29 +1200
lightdm (1.11.5-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Make PAM services configurable (LP: #1348251)
* debian/guest-account:
* debian/lightdm.install:
* debian/rules:
* debian/patches/05_translate_debian_files.patch:
- Make the real name of a guest account translatable (LP: #1177713)
-- Robert Ancell Mon, 28 Jul 2014 13:40:46 +1200
lightdm (1.11.4-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Do timed autologin each time you are returned to the greeter
- Fix tests failing with Qt 5.3 due to it checking getuid/geteuid which we are faking
- dm-tool: Warn if trying to switch to user without username
* debian/lightdm.service:
- Don't test for specific installation path
-- Robert Ancell Tue, 01 Jul 2014 15:50:16 +1200
lightdm (1.11.3-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Fix Mir sessions broken with unity-system-compositor 0.3.
- Add back Vala bindings for LightDM.Greeter.connect_sync - just mark as
deprecated.
- Put unity-system-compositor's mir_socket under /run rather than /tmp.
(LP: #1325995)
- Fix building with clang (3.5) and -Werror.
- Correct section name in default users.conf file.
-- Robert Ancell Thu, 05 Jun 2014 16:07:14 +1200
lightdm (1.11.2-0ubuntu3) utopic; urgency=high
* No change rebuild against new dh_installinit, to call update-rc.d at
postinst.
-- Dimitri John Ledkov Wed, 28 May 2014 11:09:29 +0100
lightdm (1.11.2-0ubuntu2) utopic; urgency=medium
* Integration plymouth systemd system job with plymouth services.
-- Dimitri John Ledkov Sat, 17 May 2014 19:18:41 +0100
lightdm (1.11.2-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Add liblightdm method to get user UID
- DBus-activate logind
- Check for libgcrypt at configure time
-- Robert Ancell Fri, 16 May 2014 10:55:37 +1200
lightdm (1.11.1-0ubuntu1) utopic; urgency=medium
* New upstream release:
- Allow greeters to remain running to reduce startup time when switching to a
greeter
- Add asynchronous methods to liblightdm
* debian/lightdm.upstart:
- Respawn lightdm daemon if it is unexpectedly closed
-- Robert Ancell Tue, 06 May 2014 17:07:44 +1200
lightdm (1.11.0-0ubuntu1) utopic; urgency=medium
* New upstream release:
- When switching to an existing session refresh PAM credentials and end
session cleanly so no resources leak. (LP: #1296276)
- Support new standard DesktopNames field in session files
- Set XDG_SESSION_TYPE and XDG_SESSION_DESKTOP as used by systemd
- Emit DBus PropertiesChanged when Sessions/Seats properties change. Also
add SessionAdded/SessionRemoved signals to Seat interface
[ Harald Sitter ]
* Add pam_kwallet to pam configs. (LP: #1305307)
[ Martin Pitt ]
* Add systemd integration
-- Robert Ancell Mon, 28 Apr 2014 10:32:37 +1200
lightdm (1.10.0-0ubuntu3) trusty; urgency=medium
* debian/patches/06_apparmor_chromium_updates.patch: allow oxide based
browsers and Google Chrome to run in the guest session
- LP: #1298021
- LP: #1306560
-- Jamie Strandboge Fri, 11 Apr 2014 09:24:09 -0500
lightdm (1.10.0-0ubuntu2) trusty; urgency=medium
* Add pam_kwallet to pam configs. (LP: #1305307)
-- Harald Sitter Thu, 10 Apr 2014 10:27:18 +0200
lightdm (1.10.0-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Fix return value for Vala bindings to Greeter.start_session_sync
- Fix logging when failing to find session
-- Robert Ancell Tue, 08 Apr 2014 16:12:46 +1200
lightdm (1.9.15-0ubuntu1) trusty; urgency=medium
* debian/patches/06_guest_signal_and_ptrace_aa_rules.patch,
debian/patches/07_guest_proc_pid_stat_aa_rule.patch: Dropped, the fixes
are upstream
-- Tyler Hicks Mon, 07 Apr 2014 10:33:46 -0500
lightdm (1.9.14-0ubuntu2) trusty; urgency=medium
* debian/patches/06_guest_signal_and_ptrace_aa_rules.patch: Grant
permission for guest session processes to signal and ptrace each
other (LP: #1298611)
* debian/patches/07_guest_proc_pid_stat_aa_rule.patch: Grant permission for
guest session processes to read /proc//stat. This prevents AppArmor
denial messages caused by bamfdaemon and common utilities such as ps and
killall. (LP: #1301625)
-- Tyler Hicks Thu, 03 Apr 2014 02:48:51 -0500
lightdm (1.9.14-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Pass --enable-hardware-greeter to unity-system-compositor for Mir sessions
on xlocal seats (LP: #1289072)
-- Robert Ancell Thu, 03 Apr 2014 09:07:39 +1300
lightdm (1.9.13-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Handle not getting an X connection when attempting to get X layouts.
(LP: #1235915)
- Read config data from both XDG_DATA_DIRS and XDG_CONFIG_DIRS.
-- Robert Ancell Tue, 25 Mar 2014 14:45:54 +1300
lightdm (1.9.12-0ubuntu1) trusty; urgency=medium
[ Robert Ancell ]
* New upstream release:
- Ensure X authority is written before X server is started (LP: #1260220)
- Activate after unlocking a logind session
[ Gunnar Hjalmarsson ]
* debian/guest-account:
- Disable Unity shortcut hint. (LP: #1292178)
-- Robert Ancell Mon, 17 Mar 2014 16:49:37 +1300
lightdm (1.9.11-0ubuntu2) trusty; urgency=medium
* Rebuild against Qt 5.2.1.
-- Timo Jyrinki Thu, 13 Mar 2014 07:41:22 +0200
lightdm (1.9.11-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Don't use g_hash_table_get_keys_as_array, it's a glib 2.40 feature
-- Robert Ancell Thu, 13 Mar 2014 13:42:04 +1300
lightdm (1.9.10-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Honour session type requested by greeter for guest sessions (LP: #1285132)
- Log to wtmp and btmp. (LP: #1027805)
- Implement guest-session config option
-- Robert Ancell Thu, 13 Mar 2014 11:50:38 +1300
lightdm (1.9.9-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Handle signals being received in child processes instead of treating them
like they are received in the daemon.
- Set utmp ut_line to the display name (i.e. :0) to match what other
programs expect (e.g. 'w').
- Fix lightdm_greeter_ensure_shared_data_dir_sync returning the wrong value.
- Fix shared data tests so you can run test suite without root again.
- Be extra careful not to call any non thread safe function after a fork.
- Fix some small memory leaks detected by valgrind.
- Fix process shutdown code to stop generating confusing warnings
- Fix more double removal of source IDs.
- Test improvements.
[ Gunnar Hjalmarsson ]
* debian/patches/04_language_handling.patch:
- Make lightdm_get_language() return a language with a short form language
code (LP: #1276072).
-- Robert Ancell Tue, 11 Mar 2014 09:17:15 +1300
lightdm (1.9.8-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Add support for shared user data directories between the greeter and user
sessions.
- Refactor LightDMUser and User classes to use the same code internally.
-- Robert Ancell Thu, 20 Feb 2014 16:02:35 +1300
lightdm (1.9.7-0ubuntu2) trusty; urgency=medium
* debian/lightdm.postinst: Guard the chown'ing of /var/lib/lightdm/, it
might fail on the .gvfs mount. (LP: #1279428)
-- Martin Pitt Wed, 12 Feb 2014 18:15:55 +0100
lightdm (1.9.7-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Correctly invoke PAM to change authentication token. (LP: #1270118)
- Make xdg-seat a core property of a seat and always pass it to X servers.
- Qt bindings: properly hand over prompt and message type.
- Add warning flags where they are missing and fix the resulting warnings.
-- Robert Ancell Fri, 07 Feb 2014 15:40:20 +0000
lightdm (1.9.6-0ubuntu3) trusty; urgency=medium
[ Gunnar Hjalmarsson ]
* debian/guest-session-auto.sh:
- Export gettext variables.
* debian/guest-account:
- Chown $HOME after /etc/guest-session/prefs.sh has been sourced.
* debian/patches/05_translate_guest_session_dialog.patch:
- Make the translatable strings in debian/guest-session-auto.sh end up in
the PO files.
-- Robert Ancell Wed, 05 Feb 2014 10:23:52 +0000
lightdm (1.9.6-0ubuntu2) trusty; urgency=medium
* Clear default tty on lightdm shutdown, to avoid brief display of text
messages on shutdown. (LP: #967229)
-- Dimitri John Ledkov Tue, 04 Feb 2014 10:12:05 +0000
lightdm (1.9.6-0ubuntu1) trusty; urgency=medium
* New upstream release:
- Support Mir sessions in xlocal seats by starting a unity system compositor
for each session.
- Add --screen and --fullscreen options to "dm-tool add-nested-seat"
- Don't try to compile liblightdm-qt if liblightdm-gobject will not be
compiled.
- Stop greeters warning if sessions directories not present or lightdm.conf
doesn't exist - this is valid.
- Fix log name for Mir display servers
- Fix double removal of source IDs
* debian/guest-account:
* debian/guest-session-auto.sh:
* debian/lightdm.install:
* debian/rules:
- Warn users about the temporary nature of a guest session. (LP: #435930)
* debian/lightdm.install:
* debian/lightdm.maintscript:
- Move configuration from /etc to /usr/share so dpkg doesn't keep it around.
-- Robert Ancell Wed, 22 Jan 2014 15:51:29 +1300
lightdm (1.9.5-0ubuntu1) trusty; urgency=low
* New upstream release:
- In the unity seat, if we don't have proper VT support, fake VT 0 instead
of a real VT number. This matches what logind expects.
-- Robert Ancell Thu, 05 Dec 2013 09:35:42 +1300
lightdm (1.9.4-0ubuntu1) trusty; urgency=low
* New upstream release:
- Fix issue where VTs are double used when switching sessions.
(LP: #1256150)
- Remove lightdm-set-defaults and gdmflexiserver.
- Add new ability to specify a list of seat types to try, rather than just
one.
- Allow Mir sessions in the surfaceflinger seat.
- Rename the guest session wrapper to have a simpler name.
- Make sure sessions are associated with the display server before starting
them.
- Add a dm-tool man page.
-- Robert Ancell Tue, 03 Dec 2013 19:07:28 +1300
lightdm (1.9.3-0ubuntu1) trusty; urgency=low
* New upstream release:
- Don't pass system user accounts from AccountsService to greeters.
(LP: #1248541)
- Fix crash if switching to greeter and it isn't installed. (LP: #1246529)
-- Robert Ancell Thu, 07 Nov 2013 15:07:34 +1300
lightdm (1.9.2-0ubuntu1) trusty; urgency=low
* New upstream release:
- Implement missing guest-wrapper functionality and enable it for Ubuntu.
- Update AppArmor scripts to work in Ubuntu 13.10.
(LP: #1243339)
-- Robert Ancell Wed, 30 Oct 2013 15:35:23 -0700
lightdm (1.9.1-0ubuntu1) trusty; urgency=low
* New upstream release:
- Correctly set $XDG_SESSION_CLASS for greeters. This was regressed in 1.7.5
for ConsoleKit and was never passed to logind. logind/ConsoleKit treat
greeter sessions without this set as user sessions. This causes greeters
to show the lightdm user able to be logged in with.
(LP: #1242939)
- Set $USER when running the session-setup-script. This is a regression from
1.7.5. (LP: #1245957)
- Fix notification of sessions being logged out. This is a regression from
1.7.5 and caused greeters to show sessions logged in after they had been
logged out. (LP: #1245295)
- Refactor liblightdm user scanning to be simpler and more reliable. This
fixes bugs where some properties wouldn't be updated when they changed in
accounts service.
- Add support for a "display-stopped-script" field in lightdm.conf. The
"display-stopped-script" field allows us to run a script right after
stopping the display server.
- Allow dm-tool to run outside of a session if it doesn't need to be.
- Set $MIR_SERVER_NAME to assign a name to launched sessions. Also use a
"greeter-" prefix for greeter sessions for the benefit of
unity-system-compositor.
-- Robert Ancell Wed, 30 Oct 2013 14:11:16 -0700
lightdm (1.9.0-0ubuntu2) UNRELEASED; urgency=low
* debian/50-guest-wrapper.conf:
- Configure guest session wrapper to use
-- Robert Ancell Sun, 27 Oct 2013 17:34:20 +1300
lightdm (1.9.0-0ubuntu1) trusty; urgency=low
* New upstream release:
- Fix crash when starting with existing X servers. This was introduced in
rev 1651 (lightdm 1.7.0). (LP: #1231841)
- Fix crash where Process objects are accessed after unref (LP: #1207935)
-- Robert Ancell Tue, 22 Oct 2013 12:19:25 +1300
lightdm (1.8.0-0ubuntu1) saucy; urgency=low
* debian/lightdm-session:
- Handle xrdb, setxkbmap and xmodmap not being installed (LP: #1236317)
-- Robert Ancell Wed, 09 Oct 2013 15:53:56 +1300
lightdm (1.7.18-0ubuntu1) saucy; urgency=low
* New upstream release:
- Set session environment variables for guest sessions (1.7 regression).
(LP: #1214504)
- Don't fail writing X authority if reading it had an error. (LP: #1234400)
- Update environment variables that we pass to Mir.
-- Robert Ancell Mon, 07 Oct 2013 11:57:02 +1300
lightdm (1.7.17-0ubuntu1) saucy; urgency=low
* New upstream release:
- surfaceflinger: Set XDG_VTNR=0 if VTs are not available
- Allow compiling of liblightdm-qt without liblightdm-gobject
- Add missing documentation for xremote seat options.
-- Robert Ancell Wed, 25 Sep 2013 12:06:25 +1200
lightdm (1.7.16-0ubuntu1) saucy; urgency=low
* New upstream release:
- Fix ConsoleKit support broken in 1.7.5
- Fix --test-mode (LP: #1226544)
- Add support for running Surfaceflinger sessions
-- Robert Ancell Thu, 19 Sep 2013 17:42:48 -0400
lightdm (1.7.15-0ubuntu1) saucy; urgency=low
[ Jeremy Bicha ]
* Have liblightdm-gobject-1.0 suggest not recommend lightdm
(LP: #1222155)
[ Michael Terry ]
* Set XDG_VTNR=1 as a fallback if using SeatUnity without a functioning
compositor or working VT switching, so that logind will recognize the VT
as active.
-- Michael Terry Wed, 11 Sep 2013 11:27:51 -0400
lightdm (1.7.14-0ubuntu1) saucy; urgency=low
* New upstream release:
- Correctly set permissions on Xauthority file.
-- Robert Ancell Wed, 11 Sep 2013 13:06:28 +1200
lightdm (1.7.13-0ubuntu1) saucy; urgency=low
* New upstream release:
- Correctly set $XDG_CURRENT_DESKTOP for non-autologin sessions
(LP: #1221803)
- Fix overallocation of array for strings from greeter.
- Fix truncation writing card32 in XDMCP server.
-- Robert Ancell Mon, 09 Sep 2013 16:08:55 +1200
lightdm (1.7.12-0ubuntu1) saucy; urgency=low
* New upstream release:
- Add xdg-seat config setting
- Notify Unity System Compositor of the session being authenticated
-- Robert Ancell Thu, 29 Aug 2013 12:59:39 +1200
lightdm (1.7.11-0ubuntu1) saucy; urgency=low
* New upstream release:
[ 1.7.11 ]
- Fix crash when greeter quits due to read watch not being removed
- Correctly setup Unity System Compositor environment
- Improve log messages
[ 1.7.10 ]
- Fix session locking broken in 1.7.5
- Load lightdm.conf after lightdm.conf.d/*.conf
- Also support loading config from /usr/share
- When switching sessions show a greeter if authentication required
- Set $XDG_CURRENT_DESKTOP if specified in the xsession file (LP: #1212408)
- Change logging prefixes to make it easier to troubleshoot multiseat setups
- Bring Ubuntu packaging in-tree
-- Robert Ancell Mon, 26 Aug 2013 14:48:55 +1200
lightdm (1.7.9-0ubuntu1) saucy; urgency=low
* New upstream release:
- Correctly set XDG_VTNR for unity sessions that are not autologin.
-- Robert Ancell Tue, 30 Jul 2013 18:35:21 +0100
lightdm (1.7.8-0ubuntu1) saucy; urgency=low
* New upstream release:
- Add support for Mir sessions and greeters.
- Set XDG_VTNR for unity sessions.
- Fix desktop-session-start upstart signal not being emitted since 1.7.5.
- Fix greeter log broken in 1.7.5.
* debian/liblightdm-gobject-1-0.symbols:
- Updated
-- Robert Ancell Tue, 30 Jul 2013 15:27:58 +0100
lightdm (1.7.7-0ubuntu2) saucy; urgency=low
* debian/lightdm.init:
- Use correct path to daemon (LP: #1204713)
-- Robert Ancell Thu, 25 Jul 2013 14:25:48 +1200
lightdm (1.7.7-0ubuntu1) saucy; urgency=low
* New upstream release:
- Fix uninitialized pointer introduced in 1.7.3
- Enable compile warnings and fix code generating warnings
* debian/patches/50_ubuntu_fix_uninitialised_pointer.patch:
- Applied upstream:
-- Robert Ancell Tue, 23 Jul 2013 11:23:47 +1200
lightdm (1.7.6-0ubuntu2) saucy; urgency=low
* src/main.c: fix up an unitialised pointer in configuration directory
handling. (LP: #1203711)
-- Andy Whitcroft Mon, 22 Jul 2013 11:36:05 +0100
lightdm (1.7.6-0ubuntu1) saucy; urgency=low
* New upstream release:
[ 1.7.6 ]
- Restore greeter hints that were regressed in 1.7.5.
- Don't run greeters through session wrapper - regression in 1.7.5
[ 1.7.5 ]
- Quit Plymouth correctly when using the unity seat type (LP: #1192051)
- Release the VT when the system compositor fails to start
- Load sessions and greeters from /usr/share/lightdm/sessions and
/usr/share/lightdm/greeters. The existing directories are checked
if the sessions are not in these directories.
- Refactor the Display class so that it merges with the Seat class
- Support running the greeter and session in different display servers
instead of re-using the same one during a login.
- Add more regression tests
- Documentation fixes
-- Robert Ancell Mon, 22 Jul 2013 17:13:19 +1200
lightdm (1.7.4-0ubuntu1) saucy; urgency=low
* New upstream release:
- Set XDG_SEAT and XDG_VTNR environment variables.
- Add initial support for Unity (i.e. Mir based) seats.
- Add a greeter wrapper option.
* debian/50-xserver-command.conf:
* debian/patches/05_add_xserver_core_option.patch:
- Use a conf file to replace X server core patch
* debian/50-greeter-wrapper.conf
* debian/patches/03_launch_dbus.patch
- Use a conf file to greeter wrapper patch
-- Robert Ancell Mon, 01 Jul 2013 15:47:21 +1200
lightdm (1.7.3-0ubuntu2) saucy; urgency=low
* debian/guest-account: disable screen locking in a more reliable way.
Rather than trying to write a key for another user, while setting up the
guest user account, just set up an autostart desktop that will set it
during the login (lp: #951000)
-- Sebastien Bacher Tue, 25 Jun 2013 22:30:04 +0200
lightdm (1.7.3-0ubuntu1) saucy; urgency=low
* New upstream release:
- Load configuration from /etc/lightdm/lightdm.conf.d. (LP: #1190425)
- Fix compile warnings
- Fix tests not running from install directory inside checkout.
-- Robert Ancell Fri, 21 Jun 2013 14:39:27 +1200
lightdm (1.7.2-0ubuntu1) saucy; urgency=low
* New upstream release:
- Fix .pc file for liblightdm-qt5-3
- Add a new option "autologin-in-background" which lets an autologin happen
in a second display while still showing the greeter.
- Stop if fail to create default seat
- Add option to set seat type in lightdm-set-defaults
- Stop using g_file_set_contents - it can leave intermediate files around
- Make tests work without installing them
- Fix distcheck
* debian/patches/06_fix_qt_pcfiles.patch:
* debian/patches/07_lp1189948.patch:
- Applied upstream
-- Robert Ancell Mon, 17 Jun 2013 14:08:46 +1200
lightdm (1.7.0-0ubuntu6) saucy; urgency=low
* install apparmor abstractions as 064 (LP: #1189948)
- debian/patches/07_lp1189948.patch: adjust Makefile.am and Makefile.in
to use install --mode=0644
- debian/lightdm.postinst: chmod apparmor abstractions to 0644 on upgrade
-- Jamie Strandboge Tue, 11 Jun 2013 14:11:34 -0500
lightdm (1.7.0-0ubuntu5) saucy; urgency=low
* Drop XS-Testsuite header. We don't actually have any autopkgtests right
now (they are commented out in debian/tests/control and are broken).
-- Martin Pitt Thu, 06 Jun 2013 06:58:11 +0200
lightdm (1.7.0-0ubuntu4) saucy; urgency=low
* Install some files in liblightdm-qt-dev, so it's somewhat useful.
-- Adam Conrad Fri, 24 May 2013 00:31:31 -0600
lightdm (1.7.0-0ubuntu3) saucy; urgency=low
* Switch to unversioned -dev package for liblightdm-qt to match Debian and
avoid having to change other packages synced from Debian
* Switch Conflicts to Breaks and add liblightdm-qt-3-dev to Breaks/Replaces
-- Scott Kitterman Fri, 24 May 2013 00:37:06 -0400
lightdm (1.7.0-0ubuntu2) saucy; urgency=low
* Cherry-pick patches from upstream to fix liblightdm-qt{,5} pcfiles.
* Refresh patches to apply cleanly
-- Iain Lane Tue, 07 May 2013 17:36:29 +0100
lightdm (1.7.0-0ubuntu1) saucy; urgency=low
[ Robert Ancell ]
* New upstream release:
- Use logind instead of ConsoleKit if it is available
- Use Q_SLOTS and Q_SIGNALS instead of slots and signals.
- Ignore stale X server locks
- Pass through system locale or set locale from AccountsService/.dmrc
- Fix bug where seat failure before D-Bus acquired would not stop daemon
* debian/control:
- liblightdm-qt-2 -> liblightdm-qt-3
* debian/patches/06_qt_no_keywords.patch:
- Applied upstream
[ Gunnar Hjalmarsson ]
* debian/patches/04_language_options.patch:
- Applied upstream
* debian/patches/04_language_handling.patch:
- Set LANGUAGE instead of LANG, since the Language property in
accountsservice as patched for Ubuntu does not contain a valid
locale name.
-- Robert Ancell Thu, 02 May 2013 10:20:02 -0700
lightdm (1.6.0-0ubuntu2.1) raring-proposed; urgency=low
* lightdm.upstart: Add a start condition on plymouth-ready, and
drop conditions already handled by plymouth-splash (LP: #982889).
* control: Depend on the new plymouth version that provides plymouth-ready.
-- Timo Aaltonen Tue, 23 Apr 2013 12:10:28 +0300
lightdm (1.6.0-0ubuntu2) raring; urgency=low
* debian/patches/06_qt_no_keywords.patch:
- Don't use Qt keywords like slots and signals in headers. Instead,
use Q_SLOTS and Q_SIGNALS. This avoids breaking builds of projects
that define QT_NO_KEYWORDS.
-- Michael Terry Mon, 15 Apr 2013 11:31:15 -0400
lightdm (1.6.0-0ubuntu1) raring; urgency=low
* New upstream bugfix release:
- Allow VNC command to be specified in lightdm.conf
- Register enums with QObject meta type system.
* debian/watch:
- Watch for .xz releases
-- Robert Ancell Mon, 15 Apr 2013 11:01:22 +1200
lightdm (1.5.3-0ubuntu1) raring; urgency=low
* New upstream bugfix release:
- Fix build with gobject-introspection 1.35.9
- Fix authentication cancel regression caused in 1.5.2 (LP: #1163456)
* debian/patches/fix-ftbfs-gir-scanner.patch:
- Applied upstream
-- Robert Ancell Wed, 03 Apr 2013 15:55:16 +1300
lightdm (1.5.2-0ubuntu2) raring; urgency=low
* Pass --symbol-prefix via LightDM_1_gir_SCANNERFLAGS rather than
LightDM_1_gir_CFLAGS, fixing build failure with
gobject-introspection >= 1.35.9.
-- Dmitrijs Ledkovs Tue, 02 Apr 2013 12:51:14 +0100
lightdm (1.5.2-0ubuntu1) raring; urgency=low
* New upstream bugfix release:
* Fix stale X server being left behind when using LockSession D-Bus API
(LP: #1005813)
* Adjust AppArmor profile to also work with logind
* Don't use GIO to access X authority files - it uses GVFS which is
unnecessary overhead/complexity
* Handle over/underflows when reading from greeter
* Improve warning message when XDMCP packet has length mismatch
* Only report test command line if it fails
* Add more regression tests
-- Robert Ancell Wed, 27 Mar 2013 14:44:44 +1300
lightdm (1.5.1-0ubuntu2) raring; urgency=low
* debian/lightdm.upstart: Clear the virtual terminal after starting lightdm
so startup messages are not displayed when switching users or when
suspending (LP: #967229)
-- Brian Murray Thu, 21 Mar 2013 14:33:46 -0700
lightdm (1.5.1-0ubuntu1) raring; urgency=low
* New upstream release:
[ 1.5.0 ]
- Add man page for lightdm-set-defaults (LP: #1044485)
- Use xzip for distribution, don't distribute old metadata
- Correctly check if display is active when session quits
- Relicense liblightdm to LGPL-2/LGPL-3 so GPL-2 code can link against it
- Selectively lock memory rather than calling mlockall for main daemon
[ 1.5.1 ]
- QLightDM: Add Qt5 version of the library: liblightdm-qt5-2 (LP: #1117355)
- QLightDM: Add some missing role names in UsersModel
- QLightDM: Add a backgroundPath role to UsersModel
- QLightDM: Fix potential crash in QLightDM::UsersModel closedown.
- Improve guest session apparmor
- Run each test in its own /tmp dir so they can't interfere with eachother
- Fix script hooks no longer working with latest glib (LP: #1128474)
- Fix display clean up code
* debian/control:
- Use standards version 3.9.4
- Drop bzr branch
- Build-depend on qtbase5-dev
- Add new Qt 5 packages
* debian/patches/08_lp1059510.patch:
* debian/patches/09_lp577919-fix-chromium-launch.patch:
* debian/patches/10_selective_mlock.patch:
* debian/patches/11_runtime_dir_access.patch:
- Applied upstream
* debian/source/format:
- Use 3.0
-- Robert Ancell Fri, 08 Mar 2013 11:06:52 +1300
lightdm (1.4.0-0ubuntu5) raring; urgency=low
* Add 11_runtime_dir_access.patch: Allow guest session to write
/run/user//. (LP: #1131139)
-- Martin Pitt Mon, 25 Feb 2013 14:44:18 +0100
lightdm (1.4.0-0ubuntu4) raring; urgency=low
* Update pam configs to call pam_env last and use user_readenv=1
explicitly, so that ~/.pam_environment can always be read even when
home directories are encrypted with ecryptfs. LP: #952185.
-- Steve Langasek Tue, 12 Feb 2013 12:57:29 -0800
lightdm (1.4.0-0ubuntu3) raring; urgency=low
[ Michael Terry ]
* debian/02_disable_tests.patch, debian/rules:
- Drop patch, disable test suite during build by just overriding
dh_auto_test. This way we can still manually run tests
* debian/control, debian/tests:
- Add dep8 tests to run upstream test suite. The suite only works once
lightdm is installed into PREFIX. So we must run via dep8.
Disabled for now until the next upstream release.
* debian/patches/05_add_xserver_core_option.patch:
- Modify test X server to also accept -core
* debian/patches/10_selective_mlock.patch:
- Backport patch from upstream to not use mlockall for the daemon
(LP: #1074279)
* debian/rules:
- Use ./autogen.sh when running dh_autoreconf
[ Matt Fischer ]
* debian/lightdm.install:
- Remove duplicate entry /usr/share/man
- Install apport hook
* debian/lightdm.postinst:
- Fix ownership of /var/lib/lightdm
* debian/lightdm.postrm:
- Correctly remove /var/lib/lightdm on uninstall
* debian/source_lightdm.py:
- Update apport hook
-- Michael Terry Thu, 31 Jan 2013 11:05:23 -0500
lightdm (1.4.0-0ubuntu2) quantal; urgency=low
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
- Fix 2d->3d transition to handle new support for accountsservice
LP: #1059137
-- Michael Terry Tue, 09 Oct 2012 10:26:43 -0400
lightdm (1.4.0-0ubuntu1) quantal; urgency=low
* New upstream stable release.
* debian/liblightdm-gobject-1-0.symbols:
- Updated
* debian/patches/06_add_remote_login_hint.patch:
* debian/patches/07_fix_types_in_vapi.patch:
- Applied upstream
-- Robert Ancell Fri, 05 Oct 2012 17:33:21 +1300
lightdm (1.3.3-0ubuntu5) quantal; urgency=low
* debian/patches/08_lp1059510.patch: allow owner 'rw' access to
/{,var/}run/user/guest-*/dconf/user. Also allow owner writes to sockets in
/{,var/}run/user/guest-*/keyring-*/. (LP: #1059510)
* debian/patches/09_lp577919-fix-chromium-launch.patch: allow launch of
chromium-browser from guest session. (LP: #577919)
-- Jamie Strandboge Mon, 01 Oct 2012 10:15:51 -0500
lightdm (1.3.3-0ubuntu4) quantal; urgency=low
* debian/patches/06_add_remote_login_hint.patch,
debian/liblightdm-gobject-1-0.symbols:
- Add a greeter hint to disable remote login support, and turn it
on by default.
-- Michael Terry Tue, 11 Sep 2012 11:42:17 -0400
lightdm (1.3.3-0ubuntu3) quantal; urgency=low
* debian/patches/06_disable_remote_login.patch:
- Drop patch, thereby enabling Remote Login support (LP: #1040221)
-- Michael Terry Fri, 07 Sep 2012 11:40:01 -0400
lightdm (1.3.3-0ubuntu2) quantal; urgency=low
* debian/patches/07_fix_types_in_vapi.patch:
- Patch from upstream to fix a broken vapi when trying to use
a couple enums
-- Michael Terry Thu, 06 Sep 2012 17:26:01 -0400
lightdm (1.3.3-0ubuntu1) quantal; urgency=low
[ Robert Ancell ]
* New upstream release:
- Add a new remote session type. These sessions create a temporary local
account and authenticate against a remote server. The session is an
application that accesses that remote session (e.g. VNC, RDP etc)
- Support multiple simultaneous PAM prompts (LP: #1043593)
- Set utmp ut_host field to the X display address (LP: #1027760)
- Correctly reap unused authentication sessions (LP: #990661)
* debian/liblightdm-gobject-1-0.symbols:
- Updated
[ Michael Terry ]
* debian/patches/06_disable_remote_login.patch:
- Always return an error when trying to log in to remote sessions,
until the FFe is granted (which is bug 1040221)
-- Robert Ancell Thu, 30 Aug 2012 10:15:16 +1200
lightdm (1.3.2-0ubuntu3) quantal; urgency=low
[ Christopher James Halse Rogers ]
* debian/patches/05_add_xserver_core_option.patch:
- Pass '-core' to the X server, which will cause it to dump core when
crashing. This will trigger apport, so we'll get more reliable crash
reports from X server crashes.
[ Didier Roche ]
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
- unity-2d is not supported anymore and won't be port to gsettings,
transition people using the 2d session to the 3d one. llvmpipe
will be use if no hardware acceleration is available (LP: #1035261)
* debian/patches/01_transition_gnome_ubuntu_desktop.patch:
- removed, not needed anymore
[ Scott Kitterman ]
* Add lightdm-kde-greeter as an alternate recommends for lightdm
-- Didier Roche Wed, 15 Aug 2012 08:41:55 +0200
lightdm (1.3.2-0ubuntu2) quantal; urgency=low
* Update guest-account script to not depend on Gnome and to set
various KDE settings LP: #1028552
-- Jonathan Riddell Tue, 07 Aug 2012 16:37:49 +0100
lightdm (1.3.2-0ubuntu1) quantal; urgency=low
* New upstream release:
- Handle clearenv() not being defined
- Fix compilation with GCC 4.7
- Expose remaining properties in QLightDM::Greeter
- Fix utmp records being written before child process created
-- Robert Ancell Tue, 17 Jul 2012 18:44:05 +1200
lightdm (1.3.1-0ubuntu2) quantal; urgency=low
* debian/control:
- Add build-depends on yelp-tools
-- Robert Ancell Thu, 21 Jun 2012 15:22:59 +1200
lightdm (1.3.1-0ubuntu1) quantal; urgency=low
* New upstream release:
- Don't set PAM_XDISPLAY or PAM_XAUTHDATA if not supported
- Add lock-memory option, enabled by default, to prevent paging memory
to disk.
- Write utmp records for sessions
- Install PAM configuration
- Run greeters inside the "lightdm-greeter" PAM service
- Handle setresgid and setresuid not being available
- Use xsession directory from lightdm.conf in liblightdm
* debian/rules:
- Install lightdm-greeter PAM config
* debian/lightdm.lightdm-greeter.pam:
- PAM configuration for greeters
-- Robert Ancell Thu, 21 Jun 2012 11:47:33 +1200
lightdm (1.2.1-0ubuntu1) precise-proposed; urgency=low
* New upstream release:
- Fix wrapper path in AppArmor profile (broken since 1.1.1)
- Add show-manual-login and allow-guest options to lightdm-set-defaults
-- Robert Ancell Wed, 18 Apr 2012 18:37:47 +1000
lightdm (1.2.0-0ubuntu2) precise; urgency=low
* Fix wrapper path in AppArmor profile. This got broken in 1.1.1. Patch also
committed upstream, and cherry-picked (r1487) (LP: #975901)
-- Martin Pitt Tue, 10 Apr 2012 11:06:03 +0200
lightdm (1.2.0-0ubuntu1) precise; urgency=low
* New upstream release.
- Backup .xsession-errors on login (LP: #951597)
- Handle failures in pam_setcred
- Open log files in append mode (LP: #951597)
- Add extra checks in liblightdm so that it doesn't send invalid messages
to the daemon (LP: #969023)
- Fix gdmflexiserver not being added to the path (broken since 1.1.4)
(LP: #953554)
- Fix PAM conversations after authentication from locking up sessions
(LP: #956848)
- Fix PAM informational messages locking up autologin
- Change XDMCP manage timeout from 10ms to 126s (maximum specified in the
XDMCP specification)
- Fix greeter-show-guest example (LP: #972711)
-- Robert Ancell Thu, 05 Apr 2012 17:26:50 +1000
lightdm (1.1.9-0ubuntu2) precise; urgency=low
* debian/lightdm-session:
- include some Xsession macros used by Xsession.d scripts (lp: #900221)
-- Sebastien Bacher Thu, 29 Mar 2012 12:52:34 +0200
lightdm (1.1.9-0ubuntu1) precise; urgency=low
[ Gunnar Hjalmarsson ]
* debian/guest-account: Add trailing '/' to the line
"gs_skel=/etc/guest-session/skel" (LP: #956152).
[ Robert Ancell ]
* New upstream release:
* Add --show-users/--hide-users to lightdm-set-defaults
* Call initgroups before pam_setcred - this allows pam_setcred to change
group membership correctly (LP: #880104)
-- Robert Ancell Thu, 22 Mar 2012 16:48:59 +1100
lightdm (1.1.8-0ubuntu1) precise; urgency=low
* New upstream release:
- Handle PAM interactions that have more than one message in one callback
(LP: #951460)
-- Robert Ancell Thu, 15 Mar 2012 12:57:30 +1100
lightdm (1.1.7-0ubuntu2) precise; urgency=low
* debian/guest-account: Fix arbitrary file deletion in removal of guest
files in /tmp. Use find/xargs with 0 separators instead of spaces.
(LP: #953044, CVE-2012-0943)
-- Martin Pitt Tue, 13 Mar 2012 14:53:10 +0100
lightdm (1.1.7-0ubuntu1) precise; urgency=low
* New upstream release.
-- Robert Ancell Fri, 09 Mar 2012 15:28:40 +1100
lightdm (1.1.6-0ubuntu1) precise; urgency=low
* Upload the new version to Ubuntu
* Reshuffle a bit the vcs to use merge upstream correctly
[ Robert Ancell ]
* New upstream release:
- Fix session wrapper working the same as it did in 1.1.3 (lp: #944736)
- Stop file descriptors leaking into the session processes (lp: #927060)
[ Martin Pitt ]
* debian/control: Fix liblightdm-gobject-1-doc architecture to "all".
-- Sebastien Bacher Tue, 06 Mar 2012 13:45:29 +0100
lightdm (1.1.4.is.1.1.3-0ubuntu3) precise; urgency=low
* debian/lightdm.postinst: Drop the disable-while-typing gsettings call
again. The Unity greeter already disables the mouse plugin these days, and
other known greeters do not use g-s-d.
* debian/lightdm.dirs: Really add /etc/X11/, revision 1077 did not actually
do it. (LP: #921169)
-- Martin Pitt Mon, 05 Mar 2012 13:10:46 +0100
lightdm (1.1.4.is.1.1.3-0ubuntu2) precise; urgency=low
[ Matt Fischer ]
* debian/lightdm.dirs:
- Add /etc/X11/ so lightdm.postinst doesn't fail on systems without X
installed (LP: #921169)
[ Martin Pitt ]
* debian/lightdm.postinst: Disable disable-while-typing touchpad setting for
GNOME; we do not really need this feature in lightdm, and multiple
syndaemon instances cause the touchpad to stop working sometimes. Add
libglib2.0-bin dependency for this. (LP: #868400)
-- Martin Pitt Mon, 05 Mar 2012 12:36:04 +0100
lightdm (1.1.4.is.1.1.3-0ubuntu1) precise; urgency=low
* Revert to 1.1.3 until we can figure out proper solution to bug 944736
-- Michael Terry Fri, 02 Mar 2012 15:03:26 -0500
lightdm (1.1.4-0ubuntu1) precise; urgency=low
* New upstream release.
- Change session directory once user permissions are set so it works
on NFS filesystems that don't allow root to access files. (LP: #877766)
- Restructure session code so the PAM authentication is run in its
own process. (LP: #881466)
- Set PAM_XDISPLAY and PAM_XAUTHDATA pam items (LP: #862559)
- Don't send session stdout to .xsession-errors
- Fix Qt bindings crash when removing a user
-- Robert Ancell Thu, 01 Mar 2012 20:54:07 +1100
lightdm (1.1.3-0ubuntu1) precise; urgency=low
* New upstream release:
- Actually return the system default keyboard layout, not just 'us'
- Add keyboard layout variants to list of keyboard layouts
- Check accountsservice as well as .dmrc for users' layouts
- Add lightdm_user_get_layouts() to query the configured list of layouts
on a per-user basis
- Add Lock D-Bus method that locks the seat and provides a hint to the
greeter to be in lock mode.
- Automatically lock sessions when switching away from them
- Add a has-messages property to liblightdm
- Add regression tests for PAM modules changing usernames
- Don't use g_key_file_unref, it requires glib 2.32
-- Robert Ancell Wed, 15 Feb 2012 20:15:08 +1100
lightdm (1.1.2-0ubuntu3) precise; urgency=low
* debian/patches/05_keyboard_indicator.patch:
- Backported patch from trunk to fix various keyboard layout issues
preventing greeter keyboard indicators from working.
LP: #919199, LP: #919200, LP: #915468
-- Michael Terry Sun, 12 Feb 2012 19:37:51 -0500
lightdm (1.1.2-0ubuntu2) precise; urgency=low
* Redo the previous update using merge-upstream in the package vcs so the
new version is not reverted in the diff.gz...
* 00upstream_set-defaults_autologin_support.patch:
- dropped, the fix is in the new version
-- Sebastien Bacher Sun, 12 Feb 2012 13:01:15 +0100
lightdm (1.1.2-0ubuntu1) precise; urgency=low
* New upstream release:
- Add regression tests for getting the user language and layout
- Stop accidentally distributing libsystem
- Fix introspection bindings not containing any methods (LP: #920810)
- lightdm-set-defaults can now set the autologin user
- Add Python greeter regression tests (representative of all introspection
based greeters)
- Wait for the VT to become active when switching to avoid a suspected
race condition somewhere between LightDM, X, ConsoleKit and the kernel.
(LP: #851612)
- Stop lightdm_greeter_start_session_sync() blocking on success.
* debian/lightdm.prerm:
- Fix incorrect location of lightdm binary (found by Rolf Anders)
-- Robert Ancell Fri, 10 Feb 2012 17:32:47 +1100
lightdm (1.1.1-0ubuntu4) precise; urgency=low
* Add 00upstream_set-defaults_autologin_support.patch: Add support for
setting autologin-user in lightdm-set-defaults. Committed to and
backported from trunk.
* debian/lightdm.postinst: Migrate autologin configuration from gdm on first
installation. (LP: #854431)
-- Martin Pitt Mon, 30 Jan 2012 08:25:03 +0100
lightdm (1.1.1-0ubuntu3) precise; urgency=low
[ Aurélien Gâteau ]
* debian/control, liblightdm-qt*.install:
- Rename liblightdm-qt packages to match upstream changes
- Conflicts, Replaces with the buggy version
-- Sebastien Bacher Thu, 19 Jan 2012 11:34:41 +0100
lightdm (1.1.1-0ubuntu2) precise; urgency=low
* debian/patches/04_language_options.patch:
- Replace 'locale -a' output with accountsservice's list of
language options (LP: #918225).
-- Gunnar Hjalmarsson Wed, 18 Jan 2012 16:10:29 +0100
lightdm (1.1.1-0ubuntu1) precise; urgency=low
* New upstream release:
* Support PAM requesting a change of password (lp: #911597)
* Support for reading users' backgrounds from Accounts Service
(lp: #844081)
* Switching to a user without a password bypasses the greeter
(lp: #861177)
* Move the GTK+ and Qt greeters into their own projects
* Drop the gtk and qt greeters packaging files from this source
* debian/liblightdm-gobject-1-0.symbols:
- list new lightdm_user_get_background symbol
* debian/patches/04_CVE-2011-4105.patch,
debian/patches/05_CVE-2011-3153.patch,
debian/patches/09_show_lang_chooser_option.patch,
debian/patches/10_available_languages.patch,
debian/patches/11_set_language_in_accountsservice.patch:
- dropped, those issues are fixed in the new version or apply to the
gtk greeter which is moved to its own source
* debian/rules:
- install lightdm-set-defaults back to its previous location
-- Sebastien Bacher Wed, 18 Jan 2012 11:10:03 +0100
lightdm (1.0.6-0ubuntu4) precise; urgency=low
[ Gunnar Hjalmarsson ]
* debian/lightdm-gtk-greeter-ubuntu.conf and
debian/patches/09_show_lang_chooser_option.patch:
- Disclose the option to enable the language chooser.
* debian/patches/10_available_languages.patch:
- If available, show a list of installed translations in the
language chooser instead of a 'locale -a' list (LP: #868346).
- Use nl_langinfo() to get language and country names for the
language chooser labels.
- Translate language and country names.
- Handle @variants properly.
* debian/patches/11_set_language_in_accountsservice.patch:
- Save item that is selected from the language chooser also when
AccountsService is in use (LP: #868346).
-- Robert Ancell Tue, 22 Nov 2011 12:41:43 +1100
lightdm (1.0.6-0ubuntu3) precise; urgency=low
* SECURITY UPDATE: file contents disclosure via hard link
- debian/patches/04_CVE-2011-4105.patch: make sure file isn't a symlink
or a hard link before doing the chown on it.
- CVE-2011-4105
* SECURITY UPDATE: file contents disclosure via links (LP: #883865)
- debian/patches/05_CVE-2011-3153.patch: drop privileges before
accessing file.
- CVE-2011-3153
-- Marc Deslauriers Tue, 15 Nov 2011 14:23:53 -0500
lightdm (1.0.6-0ubuntu2) precise; urgency=low
* Upload to precise.
-- Martin Pitt Thu, 10 Nov 2011 07:19:12 +0100
lightdm (1.0.6-0ubuntu1) oneiric-proposed; urgency=low
[ Martin Pitt ]
* debian/lightdm.upstart: Put back check for "text" in kernel command line,
for inhibiting automatic lightdm start. Check $JOB to still allow a manual
"start lightdm" command to work. (LP: #873334)
[ Robert Ancell ]
* New upstream release:
- Use lchown for correcting ownership of ~/.Xauthority instead of chown
-- Robert Ancell Wed, 02 Nov 2011 11:37:43 -0400
lightdm (1.0.5-0ubuntu1) oneiric-proposed; urgency=low
* New upstream release.
[1.0.5]
- Relax AppArmor guest profile to allow compiz to start
- Connect up VNC settings for width, height, depth
[1.0.4]
- Fix --enable-gtk-greeter=yes not working
- Fix X sessions with arguments in Exec not working
- Use previous session for automatic login or if greeter does not request
one. (LP: #834515)
- Correct ownership of ~/.Xauthority if upgrading from buggy version of
LightDM that had it root owned. (LP: #871667)
- Set default resolution of VNC to 1024x768, add settings for width, height,
depth into lightdm.conf.
- AppArmor profile: Fix broken gnome-keyring and dbus/gwibber, and quiesce
annoying kernel audit messages for privileges that we definitively do not
want to grant. (LP: #877736) (LP: #874635)
- Set LOGNAME environment variable (LP: #875705)
- Mark strings as translatable in GTK greeter (LP: #868613)
[ 1.0.3]
- Fix reference counting issue in ConsoleKit code
- Really add the lightdm-guest-session-wrapper
[ 1.0.2 ]
- Fix daemon from blocking if Accounts Service does not exist
- Fix greeter log file not being written
- Don't set LANG environment variable if using Accounts Service.
- Fix gdmflexiserver not working due to it not being in PATH
- Don't authenticate the greeter user
- Allow greeters to be disabled in configure flags
- Fix over allocation of read buffer in greeter protocol
- Make sure objects are cleaned up on exit
- Fix minor memory leaks
- Fix hugely oversized allocation in greeter buffer. Can trigger
crashes when entering very long passwords.
* debian/patches/00bzr_guest_session_wrapper.diff:
* debian/patches/07_long_password_crash.patch:
* debian/patches/08_correct_ck_ref.patch:
- Applied upstream
* New upstream release.
-- Robert Ancell Wed, 26 Oct 2011 12:45:17 -0400
lightdm (1.0.1-0ubuntu6) oneiric; urgency=low
* debian/patches/08_correct_ck_ref.patch:
- backported fix from Mikkel Kamstrup Erlandsen for a refcounting issue
which leads to sessions where unity can't start (lp: #851345)
-- Sebastien Bacher Fri, 07 Oct 2011 13:57:44 +0200
lightdm (1.0.1-0ubuntu5) oneiric; urgency=low
* Add debian/patches/00bzr_guest_session_wrapper.diff: Add back the guest
session wrapper part that was uploaded in 1.0.0-0ubuntu4. The patch was
correctly merged into trunk, but the 1.0 branch backport missed this
wrapper part and thus broke AppArmor protection entirely. (LP: #849027)
-- Martin Pitt Fri, 07 Oct 2011 11:47:36 +0200
lightdm (1.0.1-0ubuntu4) oneiric; urgency=low
* debian/patches/04_language_not_to_LANG.patch:
* debian/patches/04_dmrc_set_LANG_only.patch:
- Replace LANG disabling code with proper fix (LP: #868149)
* debian/patches/03_launch_dbus.patch:
* debian/patches/05_gdmflexiserver_not_in_PATH.patch:
- Refreshed
* debian/patches/06_accounts_service_timeout.patch:
- Fix D-Bus timeout when accounts service not installed (LP: #866035)
* debian/patches/07_long_password_crash.patch:
- Fix crash with long passwords (LP: #817186)
-- Robert Ancell Thu, 06 Oct 2011 15:45:21 +1100
lightdm (1.0.1-0ubuntu3) oneiric; urgency=low
* debian/patches/05_gdmflexiserver_not_in_PATH.patch:
- Make sure to insert our own utility path into PATH after PAM
sets PATH, not before. This ensures gdmflexiserver is present
in PATH and can be found by gnome-screensaver, gnome-shell, etc.
-- Michael Terry Wed, 05 Oct 2011 09:05:31 -0400
lightdm (1.0.1-0ubuntu2) oneiric; urgency=low
* debian/patches/04_language_not_to_LANG.patch:
Locale names based on AccountsService's "Language" key may not
go to $LANG, as that property is a language name, not a locale.
(LP: #864618).
-- Gunnar Hjalmarsson Wed, 05 Oct 2011 09:49:15 +0200
lightdm (1.0.1-0ubuntu1) oneiric; urgency=low
* New upstream release:
- GTK greeter now remembers last user
- GTK greeter now initializes i18n (LP: #862427)
- Start authentication for automatically selected user in GTK greeter
- Link liblightdm-qt against QtGui
- Fix liblightdm-qt crashing when face images are installed (LP: #850095)
- Set correct permissions on session log files (LP: #863119)
- Prefer a locale with a codeset over one without for setting LANG
(LP: #864618)
- Introduce a lightdm-guest-session-wrapper session command which MAC
systems like AppArmor and SELinux can use for attaching a restrictive
policy to guest sessions.
- Provide an AppArmor profile for guest session lockdown.
* debian/patches/01_guest_session_lockdown.patch:
- Applied upstream
-- Robert Ancell Tue, 04 Oct 2011 19:58:25 +1100
lightdm (1.0.0-0ubuntu4) oneiric; urgency=low
* Add 01_guest_session_lockdown.patch: Lock down guest session with an
AppArmor profile. This uses the very same approach as gdm-guest-session,
and copies the profile from it. (LP: #849027)
* 03_launch_dbus.patch: Refresh.
* debian/lightdm.install: Install AppArmor profile.
-- Martin Pitt Fri, 30 Sep 2011 17:30:56 +0200
lightdm (1.0.0-0ubuntu3) oneiric; urgency=low
* debian/patches/03_launch_dbus.patch:
- Fix patch applying in the wrong place
-- Robert Ancell Thu, 29 Sep 2011 16:08:20 +1000
lightdm (1.0.0-0ubuntu2) oneiric; urgency=low
* debian/lightdm-gtk-greeter.postinst,
debian/lightdm-gtk-greeter.postrm,
debian/lightdm-gtk-greeter.preinst:
- move the gtk-greeter conffile starting from 1.0.0-0ubuntu1 and not
0.9.7-0ubuntu1 (the patch using 0.9.7-0ubuntu1 as a reference has
been integrated in 1.0.0-0ubuntu1 without being updated even if
0.9.7-0ubuntu2 was already released). Ensure we do it now (LP: #861316)
-- Didier Roche Wed, 28 Sep 2011 13:40:40 +0200
lightdm (1.0.0-0ubuntu1) oneiric; urgency=low
[ Steve Langasek ]
* don't start on graphics-device-added; reintroducing this reverted the fix
for bug #615549 from maverick without explanation.
* clean up the completely illegible start rule for debian/lightdm.upstart,
killing off the unnecessary parentheses
* debian/lightdm.upstart: when lightdm is shut down by a runlevel call,
emit an upstart event that can be caught by plymouth so it can
distinguish between the DM shutting down for a runlevel change vs. other
causes. LP: #854329.
[ Robert Ancell ]
* New upstream release.
[ 0.9.8 ]
- GetSeatForCookie and GetSessionForCookie are now deprecated. They
remain for now but use the XDG_SEAT_PATH and XDG_SESSION_PATH
environment variables instead.
- Change log filenames to be unique across different display types.
- Fix up script hooks, add regression tests for them
- Complete removal of X code from the core of LightDM, so it can better
support various display types
- Add ability to set the language of a user from the greeter (LP: #803858)
- Set LANG variable based on the user language
- Add language selector into GTK greeter (disabled by default)
- Allow TCP/IP connections if xserver-allow-tcp is true
- Allow lightdm --version to be run as non-root
- Automatically respond to PAM messages without prompts (LP: #783598)
- Create 'AddLocalXSeat' D-Bus method, and require root to use 'AddSeat'
- Fix multi-seat configuration picking the same display number (LP: #851362)
- Use correct D-Bus and power interface in liblightdm-qt (LP: #852803)
- Run pam_setcred inside the session process so pam_group works
(LP: #851347)
- Make sure one session is always selected in the GTK greeter (LP: #819177)
[ 1.0.0 ]
- Explicitly grab keyboard focus in GTK greeter
- Fix removed power and a11y menu items in GTK greeter
- Put system binary directory into path when running in test mode
(LP: #860003)
- Call pam_getenvlist after pam_setcred
[ Lionel Le Folgoc ]
* Make the gtk greeter easily themable by derivatives: (LP: #845549)
- rename lightdm-gtk-greeter.conf to lightdm-gtk-greeter-ubuntu.conf,
and handle the move in maintainer scripts.
- manage /etc/lightdm/lightdm-gtk-greeter.conf with update-alternatives,
by default it uses /etc/lightdm/lightdm-gtk-greeter-ubuntu.conf with a
very low priority.
* debian/control: lightdm-gtk-greeter provides lightdm-gtk-greeter-config.
-- Robert Ancell Wed, 28 Sep 2011 16:00:20 +1000
lightdm (0.9.7-0ubuntu2) oneiric; urgency=low
* don't start on graphics-device-added; reintroducing this reverted the fix
for bug #615549 from maverick without explanation.
* clean up the completely illegible start rule for debian/lightdm.upstart,
killing off the unnecessary parentheses
* debian/lightdm.upstart: when lightdm is shut down by a runlevel call,
emit an upstart event that can be caught by plymouth so it can
distinguish between the DM shutting down for a runlevel change vs.
other causes. LP: #854329.
-- Steve Langasek Sun, 25 Sep 2011 22:22:38 -0700
lightdm (0.9.7-0ubuntu1) oneiric; urgency=low
* New upstream release.
- Set PAM_TTY to the display name, not the tty device (LP: #851055)
-- Robert Ancell Fri, 16 Sep 2011 09:39:22 +1000
lightdm (0.9.6-0ubuntu1) oneiric; urgency=low
* New upstream release:
- Only unlock displays if switched to from greeter
- Make log file not system readable
- Write ~/.Xauthority inside the session process so it cannot be hijacked
- Set PAM_TTY and PAM_XDISPLAY when opening PAM session
- Add VNC server support
- Do not write ~/.dmrc and ~/.Xauthority as root. [CVE-2011-3349]
* debian/patches/00upstream_unlock_fix.patch:
* debian/patches/04_dont_write_files_as_root.patch:
- Applied upstream
-- Robert Ancell Thu, 15 Sep 2011 17:32:25 +1000
lightdm (0.9.5-0ubuntu2) oneiric; urgency=low
* debian/lightdm.config: When installing from scratch as part of a release
upgrade, default to lightdm, otherwise ask. (LP: #806559)
* Add 04_dont_write_files_as_root.patch: Do not write ~/.dmrc and
~/.Xauthority as root. [CVE-2011-3349]
* Add 00upstream_unlock_fix.patch: Only unlock displays if switched to from
greeter. Cherrypicked from upstream r1137. (LP: #844274)
-- Martin Pitt Thu, 15 Sep 2011 08:52:24 +0200
lightdm (0.9.5-0ubuntu1) oneiric; urgency=low
[ Steve Langasek ]
* Update upstart job to use current start condition lifted from gdm,
and to check runlevels instead of /proc/cmdline so it's possible to
start lightdm after switching out of recovery mode. LP: #803513.
[ Didier Roche ]
* debian/patches/01_transition_gnome_ubuntu_desktop.patch:
natty-oneiric session name upgrade:
- transition from unity-2d -> ubuntu-2d
- transition from gnome-2d -> gnome-fallback
[ Robert Ancell ]
* New upstream release:
[0.9.5]
- Use accounts service in the daemon if it is available
- Correctly load seat type in multi seat configuration
- Add display-setup, session-setup and session-cleanup scripting hooks
- Fix cancel button in GTK greeter (LP: #819240)
- Fix line through GTK greeter menu items
- Exit daemon if a seat fails which has exit-on-failure set to true
- Add HasGuestAccount property to seat D-Bus interface (LP: #835084)
- Fix XDMCP authorization
- Update man file
- Emit upstart events (LP: #715094)
[0.9.4]
- lightdm-set-defaults enables tweaking the default session and chosen
greeter for lightdm. This is useful for derivatives waiting to not ship
the whole configuration file of lightdm
- Fix crash in GTK+ greeter when a user is added
- Move xsessions-directory and xgreeters-directory from [SeatDefaults] to
[LightDM]. This is a configuration break, but making it on the assumption
that these settings are not likely to have been overridden.
- Fix fallback from org.freedesktop.Accounts to passwd format
- Fix duplicate user entries being shown when using passwd file
- Add AddSeat D-Bus method for adding dynamic seats
- Added a dm-tool program that allows user switching and adding seats
- Allow remote X servers, e.g. launched using dm-tool add-nested-seat
- Fix bug where sessions were started when the greeter quit and the user
hadn't been authorized.
- Fix bug where sessions used the seat bus name
- Don't allow autologin-username to be set to empty
- Fix bug where PAM session was not opened before writing to home directory
- Fix crash when failing to write X authority
-- Robert Ancell Wed, 07 Sep 2011 16:09:53 +1000
lightdm (0.9.3-0ubuntu8) oneiric; urgency=low
* debian/patches/series:
- Add patch from last commit to actually apply. Ahem.
* debian/rules:
- Make greeter wrapper executable
-- Michael Terry Thu, 25 Aug 2011 16:20:00 -0400
lightdm (0.9.3-0ubuntu7) oneiric; urgency=low
* debian/install, debian/lightdm-greeter-session,
debian/patches/03_launch_dbus.patch:
- Add patch and wrapper script to launch dbus for the greeter so that
we can safely kill it when the greeter ends.
-- Michael Terry Wed, 24 Aug 2011 15:34:07 -0400
lightdm (0.9.3-0ubuntu6) oneiric; urgency=low
* Backport r1065 to use account service instead of .dmrc (lp: #823718),
should fix the session not being correct remembered (lp: #818201)
-- Sebastien Bacher Tue, 23 Aug 2011 16:21:59 +0200
lightdm (0.9.3-0ubuntu5) oneiric; urgency=low
* Backport potfiles.in fix from trunk
* debian/lightdm.install: install dm-tool (seat management utility)
-- Sebastien Bacher