hst/grp_pwd: specify new uid format
All checks were successful
Test / Create distribution (push) Successful in 27s
Test / Sandbox (push) Successful in 41s
Test / Sandbox (race detector) (push) Successful in 41s
Test / Hpkg (push) Successful in 42s
Test / Hakurei (push) Successful in 47s
Test / Hakurei (race detector) (push) Successful in 46s
Test / Flake checks (push) Successful in 1m31s
All checks were successful
Test / Create distribution (push) Successful in 27s
Test / Sandbox (push) Successful in 41s
Test / Sandbox (race detector) (push) Successful in 41s
Test / Hpkg (push) Successful in 42s
Test / Hakurei (push) Successful in 47s
Test / Hakurei (race detector) (push) Successful in 46s
Test / Flake checks (push) Successful in 1m31s
This leaves slots available for additional uid ranges in Rosa OS. This breaks all existing installations! Users are required to fix ownership manually. Closes #18. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
16
cmd/hsu/hst.go
Normal file
16
cmd/hsu/hst.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
/* copied from hst and must never be changed */
|
||||
|
||||
const (
|
||||
userOffset = 100000
|
||||
rangeSize = userOffset / 10
|
||||
|
||||
identityStart = 0
|
||||
identityEnd = appEnd - appStart
|
||||
|
||||
appStart = rangeSize * 1
|
||||
appEnd = appStart + rangeSize - 1
|
||||
)
|
||||
|
||||
func toUser(userid, appid uint32) uint32 { return userid*userOffset + appStart + appid }
|
||||
Reference in New Issue
Block a user