Decouple client contracts and close private role registries

This commit is contained in:
ms2k 2026-07-19 03:44:30 +09:00
commit 22325aa76a

View file

@ -189,7 +189,7 @@ pub fn recover_private_state_anchor_mount(
)?;
let authority = holder.identity().authority();
let target = TargetCommand::new("/proc/self/exe")
.argument(PRIVATE_RECOVERY_ROLE)
.argument(PRIVATE_STATE_ANCHOR_RECOVERY_ROLE)
.argument(authority.pidfs_st_dev.get().to_string())
.argument(authority.pidfs_st_ino.get().to_string())
.argument(user_namespace.device.get().to_string())
@ -214,7 +214,7 @@ pub fn recover_private_state_anchor_mount(
pub fn dispatch_private_state_anchor_recovery(arguments: &[OsString]) -> Option<io::Result<()>> {
if arguments
.first()
.is_none_or(|arg| arg != PRIVATE_RECOVERY_ROLE)
.is_none_or(|arg| arg != PRIVATE_STATE_ANCHOR_RECOVERY_ROLE)
{
return None;
}