~system-settings-touch/ubuntu-system-settings/trunk

Viewing all changes in revision 1017.

  • Committer: CI bot
  • Author(s): Michael Terry
  • Date: 2014-09-09 16:39:54 UTC
  • mfrom: (1003.1.3 allow-some-failures)
  • Revision ID: ps-jenkins@lists.canonical.com-20140909163954-ap9kue1mv7z9yz2d
Fix false-negatives from AccountsService when switching from swipe to password (LP: #1363405)

When AccountsService switches from swipe to password (or back), it does several things (delete user password if moving to swipe, then adjust some group memberships like nopasswdlogin, then adjust some internal state).

But on Touch, the group membership change will fail since /etc/group is readonly.  (But it doesn't matter, since AccountsService will note from its inotify monitor on /var/lib/extrausers/shadow that it needs to update its internal state.)

However!  USS will see the failure and try to rollback to swipe instead of changing away from swipe.  Except even then it will mess up.  It won't make the same call again to AS to delete the password again, so we'll end up with the password changed but left in place.  Producing the symptoms in bug 1363405. Fixes: 1363405
Approved by: Sebastien Bacher

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: