Public bug reported:
If a user is over quota, or if the home directory disk is full, they get
logged out straight after logging in, when the home directory is on NFS.
No information is presented to the user that would let them know the
problem.
This is because of an error in the way that lightdm writes to the
~/.Xauthority file in src/x-authority.c.
It does check that each write() succeeds, but in the NFS case, the data
isn't actually written by the client until fsync() is called; the status
of that system call isn't checked so the quota problem is undetected.
Calling fsync() is not necessary; the effect of committing the data to
disk is implied by close(), which is done on the next line anyway.
Ubuntu 14.04.5 LTS
lightdm 1.10.6-0ubuntu1
** Affects: lightdm (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "lightdm-check-close-status.patch"
https://bugs.launchpad.net/bugs/1740406/+attachment/5028428/+files/lightdm-check-close-status.patch
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1740406
Title:
Login fails with no error message when NFS home directory is over
quota
Status in lightdm package in Ubuntu:
New
Bug description:
If a user is over quota, or if the home directory disk is full, they
get logged out straight after logging in, when the home directory is
on NFS. No information is presented to the user that would let them
know the problem.
This is because of an error in the way that lightdm writes to the
~/.Xauthority file in src/x-authority.c.
It does check that each write() succeeds, but in the NFS case, the
data isn't actually written by the client until fsync() is called; the
status of that system call isn't checked so the quota problem is
undetected.
Calling fsync() is not necessary; the effect of committing the data to
disk is implied by close(), which is done on the next line anyway.
Ubuntu 14.04.5 LTS
lightdm 1.10.6-0ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1740406/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp