IRC channel logs
2021-09-10.log
back to list of logs
<dhruvin>I'm a beginner to guile. I'm running a guile script as root. Is there a way to run a section of it as some other user? Something like (with-uid <uid-of-some-user> ...)? <xiews>Will it work if you login as another user? <flatwhatson>you can use these to drop privileges, but not to get back again. if you want to keep root privs, you would need to make a fork and drop privs inside the child, while retaining them in the parent <dhruvin>xiews: Context: I'm building a guix image for sourcehut builder. I created a shepherd-service which runs as root (runs my guile code) to configure the build user. I could not use setuid because I couldn't setuid back to root. <flatwhatson>yeah it's not possible to setuid back, so you need a different approach (eg. fork) <dhruvin>flatwhatson: Okay, I'll read more about fork and dropping privilages. Thanks :) <zap>regarding the embedding discussion and guile's support for other languages. It sounds very exiting but I always wondered whether it is practically possible to have solid support for e.g. python, cause its carryig a lot of bagage with it, and from the first glance cost of maintaining python on top of guile vm outweights the benefits. <zap>And in general Im curious about who are the audience of packages like python-on-guile, or in other words what is the primary usecase? <zap>Oh man it was yesterday. Weechat doesn't scroll down the history automatically <mwette>I view use case for extension languages in guile is providing the capability to write extension code for a specific application. I'm doubtful exact conormance (e.g., to javascript) is possible. <chrislck>is it possible to link gnucash-cli without any gtk?