mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:17:34 +00:00
LoginServer+LibCore: Only create user temp directory from LoginServer
Other programs use Core::Account::login(), notably su(1), which stopped working due to a missing "cpath" pledge promise. This patch moves the /tmp/user/ creation logic to a separate function that LoginServer can call.
This commit is contained in:
parent
32642394a9
commit
3f14582b85
3 changed files with 14 additions and 8 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
bool authenticate(SecretString const& password) const;
|
||||
bool login() const;
|
||||
|
||||
ErrorOr<void> create_user_temporary_directory_if_needed() const;
|
||||
|
||||
String username() const { return m_username; }
|
||||
String password_hash() const { return m_password_hash; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue