Compare commits

..

3 Commits

Author SHA1 Message Date
292715b0f6
system: optimise string formatting
Some checks failed
Test / Create distribution (push) Successful in 26s
Test / Fortify (push) Successful in 2m35s
Test / Data race detector (push) Successful in 4m38s
Test / Fpkg (push) Failing after 17m17s
Test / Flake checks (push) Has been skipped
Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-03-25 04:47:00 +09:00
b66cfd9a63
test: check revert type selection
Some checks failed
Test / Flake checks (push) Blocked by required conditions
Test / Create distribution (push) Successful in 25s
Test / Fortify (push) Successful in 2m30s
Test / Data race detector (push) Successful in 3m9s
Test / Fpkg (push) Has been cancelled
Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-03-25 04:37:58 +09:00
4e8f72022d
app: run in native sandbox
Some checks failed
Test / Create distribution (push) Successful in 26s
Test / Fortify (push) Successful in 2m32s
Test / Data race detector (push) Successful in 4m9s
Test / Fpkg (push) Failing after 17m10s
Test / Flake checks (push) Has been skipped
Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-03-25 02:24:03 +09:00
3 changed files with 2 additions and 13 deletions

View File

@ -65,7 +65,6 @@ type appInfo struct {
func (app *appInfo) toFst(pathSet *appPathSet, argv []string, flagDropShell bool) *fst.Config {
config := &fst.Config{
ID: app.ID,
Path: argv[0],
Args: argv,
Confinement: fst.ConfinementConfig{
AppID: app.AppID,

View File

@ -16,8 +16,7 @@ func withNixDaemon(
app *appInfo, pathSet *appPathSet, dropShell bool, beforeFail func(),
) {
mustRunAppDropShell(ctx, updateConfig(&fst.Config{
ID: app.ID,
Path: shellPath,
ID: app.ID,
Args: []string{shellPath, "-lc", "rm -f /nix/var/nix/daemon-socket/socket && " +
// start nix-daemon
"nix-daemon --store / & " +
@ -65,7 +64,6 @@ func withCacheDir(
app *appInfo, pathSet *appPathSet, dropShell bool, beforeFail func()) {
mustRunAppDropShell(ctx, &fst.Config{
ID: app.ID,
Path: shellPath,
Args: []string{shellPath, "-lc", strings.Join(command, " && ")},
Confinement: fst.ConfinementConfig{
AppID: app.AppID,

View File

@ -301,15 +301,7 @@ func (l *Symlink) apply(*Params) error {
return msg.WrapErr(syscall.EBADE,
fmt.Sprintf("path %q is not absolute", l[1]))
}
target := toSysroot(l[1])
if err := ensureFile(target, 0444, 0755); err != nil {
return err
}
if err := os.Remove(target); err != nil {
return msg.WrapErr(err, err.Error())
}
if err := os.Symlink(l[0], target); err != nil {
if err := os.Symlink(l[0], toSysroot(l[1])); err != nil {
return msg.WrapErr(err, err.Error())
}
return nil