- Use '/run/user_ext' for askuser-notification.socket
- Set uid and gid for askuser service.
Change-Id: If709f1e5d5e20e9a3863bed6ee54a12b23d074a7
return socketPath;
}
-const std::string userPathFormatPrefix = "/run/user/";
+const std::string userPathFormatPrefix = "/run/user_ext/";
const std::string userPathFormatSuffix = "/askuser-notification.socket";
std::string getUserSocketPath(uid_t uid) {
[Socket]
-ListenStream=/run/user/%U/askuser-notification.socket
+ListenStream=/run/user_ext/%U/askuser-notification.socket
SocketMode=0770
Service=askuser-notification.service
+ExecStartPost=/usr/bin/chmod 0666 /run/user_ext/%U/askuser-notification.socket
[Install]
WantedBy=sockets.target
Restart=always
UMask=0000
+User=security_fw
+Group=security_fw
#Environment="ASKUSER_LOG_LEVEL=LOG_DEBUG"