-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The hashed passwords is sensitive data, and it gets copied around in the browser a lot. This isn't a data leak or security issue, as a malicious page already has the privilege to read it by itself at any time, and browsers isolate websites pretty well. However, let's be careful. We only need /etc/shadow for two reasons: - Determine if an account is locked. Let's drop the file format assumption and use `passwd -S`, just as the details page already does. Use `get_locked()` from utils.js, and rework the code to get along with it being async. - Watch the file to get notified about account changes (locked, expiry, etc.). But we only need the event, not the actual data. So install a simple no-read file watch for this. Also avoid reading utmp, as we don't look at its contents. Thanks to @jeepingben for the suggestion!
- Loading branch information
1 parent
0fc9f65
commit 95729ab
Showing
1 changed file
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters