Login fails with no error message when NFS home directory is over quota

Bug #1740406 reported by Peter Benie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
New
Undecided
Unassigned

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

Tags: patch
Revision history for this message
Peter Benie (pjb1008) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lightdm-check-close-status.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.