Re: [systemd-devel] Howto unshare when user session starts.

2024-03-05 Thread Stef Bon
Thank you for your answer. Sorry for my late reaction. I've been ill for some weeks. You say that starting a new namespace might have problems with multithreaded programs (and which program isn't??). Can you explain why and where the problem occurs? Maybe a link with some context. Much

Re: [systemd-devel] Howto unshare when user session starts.

2024-02-21 Thread Stef Bon
Hi, I know that I can use a session file, and I know I can use a pamfile (I've written one myself) but what I want to know is how can I use systemd for that? Systemd handles the system, sessions and containers, so is it for example possible to set some parameters and make the pam module of

[systemd-devel] Howto unshare when user session starts.

2024-02-21 Thread Stef Bon
Hi, maybe this is a question simple to answer. I want the user sessions to start in a {mount,user} namespace. How can I do this? I know there is the command systemd-nspawn. But to use this I have to adjust the first command to start a session. Or is it possible by setting parameters in logind?

[systemd-devel] Possible to build a dnssd client with systemd.

2022-11-30 Thread Stef Bon
Hi, I'm using the client library of avahi, and I want to build my own dnssd client. I'm using epoll in my eventloop, and never (tried several times) to make avahi work with my eventloop. Tried several times, following examples found in the documentation. Is this possible with systemd? S. Bon

Re: [systemd-devel] Howto find sshfp records?

2018-07-29 Thread Stef Bon
Hi, I cannot find a header file where DNS_TYPE_SSHFP is defined, only in the source tree of systemd. There should be a header file in /usr/include. Where can I find it? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Howto find sshfp records?

2018-07-22 Thread Stef Bon
Op zo 22 jul. 2018 om 21:49 schreef Mantas Mikulėnas : > How can I make it to find sshfp records? >> > > From the same page, "Use ResolveRecord() in order to resolve arbitrary > resource records. The call will return the binary RRset data. This calls is > useful to acquire resource records for

[systemd-devel] Howto find sshfp records?

2018-07-22 Thread Stef Bon
Hi, I'm writing a ssh client, and I want it to be able to do a dns lookup of sshfp records. The ipv4 address is known, as wel as the hostname. I've found the code about resolving: https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients/ How can I make it to find sshfp

[systemd-devel] Suggestion for a system fs change notify service.

2018-07-16 Thread Stef Bon
ue. Maybe in future this service can also provide info about locking too. What do you think? Stef Bon ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
hi, maybe good to know that libgcrypt provides a function which offers "all in one": void gcry_md_hash_buffer (int algo, void *digest, const void *buffer, size_t length) digest can be an array created earlier using the function gcry_md_get_algo_dlen. Stef

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
Same error here: (gcry_md_open without gcry_md_close) line 901 in src/resolve/resolved-dns-sec.c while in the same file at 1227 it's done the good way. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
The testing of the new code requires me too much (meson is required.. and I don't want to replace my existing systemd) and I do not expect to add more patches is near future. I've got a patch: diff --git a/src/basic/gcrypt-util.c b/src/basic/gcrypt-util.c index 1bfb77672..c7c07e3b7 100644 ---

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
2018-02-03 20:27 GMT+01:00 : > > Nice catch, that indeed looks like a leak. Would you like to prep a > PR fixing it? > PR? I do not know what you mean. A pull request? I can write a patch. Stef ___ systemd-devel mailing list

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
2018-02-03 19:26 GMT+01:00 Stef Bon <stef...@gmail.com>: > Hi, Oh and this in in file src/basic/gcrypt-util.c. > > Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
Hi, when I look at the function string_hashsum it looks like the context is not closed when done. After a succesfull gcry_md_open the hash context md should be closed when leaving this function. That does not happen. Stef ___ systemd-devel mailing

[systemd-devel] Suggestion for a lowlevel fsnotify change daemon.

2015-07-28 Thread Stef Bon
Hi all, for some time I have been looking at the issue why fsnotify does not work with network filesystems and FUSE (with a shared backend). I've found out that changes initiated on the localhost, on the filesystem are supported by the fs change subsystems on Linux, and events initiated at the

Re: [systemd-devel] Suggestion for a lowlevel fsnotify change daemon.

2015-07-28 Thread Stef Bon
me there are good reasons for), you have to do this in userspace. Stef Bon (I realise that one possible reason for a user-space service is so that it can aggregate all the periodic polling, on filesystems that don't have anything better you can do - that's why FAM had a daemon, if I

Re: [systemd-devel] User sessions, session buses, user buses

2015-02-03 Thread Stef Bon
2015-01-30 9:30 GMT+01:00 Simon McVittie simon.mcvit...@collabora.co.uk: In principle, a PAM module or something could ensure that we have a dbus-daemon per login session, even tty/ssh/cron login sessions (which all go through PAM). In practice, nobody has ever cared enough to implement this,

[systemd-devel] Hoe is het met je?

2013-03-05 Thread Stef Bon
Hi, hoe is het met je? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-12 Thread Stef Bon
2013/2/11 Lennart Poettering lenn...@poettering.net: On Mon, 11.02.13 12:59, Stef Bon (stef...@gmail.com) wrote: And since you say it's simple by just make the call, can you just describe what to do to make a plugable device like the UD-160-A/M turn into a dockingstation? loginctl attach

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-11 Thread Stef Bon
2013/2/8 Lennart Poettering lenn...@poettering.net: On Fri, 08.02.13 12:27, Stef Bon (stef...@gmail.com) wrote: No, udev contains the information which devices together make up a seat. Hence, it is also udev where it is stored whether something is used in docking station style or in new

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-11 Thread Stef Bon
2013/2/11 Colin Guthrie gm...@colin.guthr.ie: 'Twas brillig, and Stef Bon at 11/02/13 08:45 did gyre and gimble: Look this is getting us nowhere. You do not seem to understand my point. How does this rule look like? I'm asking because I cannot immagine one. But calling those methods

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-08 Thread Stef Bon
2013/2/8 Lennart Poettering lenn...@poettering.net: On Wed, 06.02.13 14:24, Stef Bon (stef...@gmail.com) wrote: Ok, when logind sends out a message (after seat added or removed) it's up to the services like gdm(?) what to do with it: use it as docking station or to start a new session (eg

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-23 Thread Stef Bon
Hi, Thanks what should the gui toolkit be? Gtk3? I prefer that over qt, which is not my favorite. And is there a location to store the project? I can of course get one at github or something like that, but maybe there is a better one? Stef ___

[systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Hi, I'm experimenting with the plugable ud-160-A as seat extender. I'm borrowing it from Hans de Goede. Now it works very good, only with new monitors using the newest EDID technique it blocks. Hans has already posted a patch. But with an older monitor it works great!! Now I would like

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Lennart wrote here: http://0pointer.de/blog/projects/multi-seat.html (Later on we'll probably have a graphical setup utility for additional seats, but that's not a pressing issue we believe, as the plug-n-play multi-seat support with the Plugable devices is so awesomely nice.) Fourth alinea.

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Hi, First I'm talking about ud-160-A. Second the patch: https://bugzilla.redhat.com/show_bug.cgi?id=894299 It's a patch for the displaylink driver. Third: have you tried to connect the monitor using the vga adapter? That should work. Stef And please do not mail to a lot of people. That

Re: [systemd-devel] Offtopic question.

2013-01-04 Thread Stef Bon
Hi, I've read about the possible bugs. About the combination between mmap and mandatory locks: of course the mapping of memory is causing troubles when a mandatory lock is set. The mapped region should or forward the lock to the new memory location (where remapped) or the mmap should be denied,

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Well, I'm working on notifyfs, a fuse fs which is a cache for gui clients and a filesystem event notifier. It uses inotify on linux to notify clients about changes. I want to be complete and add information about locks as well (new, changed and removed). On the localhost this requires monitoring

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Yes, thanks a lot. I've read it, understood, maybe this whole locking thing should be replaced with a better approach. First you mention in the first blog entry: Mandatory locking is available too. It's based on the POSIX locking API but not portable in itself. It's dangerous business and should

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
2013/1/3 Kay Sievers k...@vrfy.org FWIW, adding poll() support would look like something like this: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842 Kay Thanks a lot. I will try to write a patch with it, although the way

[systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
Hi, sorry for the offtopic question here, but I do not know a better place for it. I'm building a lockmonitor. I thought that would be just as easy as with the /proc/self/mountinfo file. But that is not the case. It's not pollable, like the mountinfo fle is. I've looked into the code of the

Re: [systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
You are sure?? I mean the locks file, not the mounts file. I think you haven't understood my post very good. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
No problem. Just a misunderstading or how you want to call it. Stef 2013/1/2 Dave Reisner d...@falconindy.com On Jan 2, 2013 5:41 PM, Stef Bon stef...@gmail.com wrote: You are sure?? I mean the locks file, not the mounts file. I think you haven't understood my post very good

[systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
Hi, I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question as is the readdir function sort sensitive? If not, I have to add a sort function. Stef

Re: [systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
2012/7/26 Kay Sievers k...@vrfy.org: On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon stef...@gmail.com wrote: I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question

Re: [systemd-devel] Howto detect a session start (and end) with systemd?

2012-06-30 Thread Stef Bon
Ok, forget last message. I've found test-login.c, which gives all answers. Stef 2012/6/30 Stef Bon stef...@gmail.com: Yes, thank you. It looks like a can use that. It just provides what I need. The monitor sd_login_monitor can provide a fd. What happens with this fd? Is there data

[systemd-devel] Howto detect a session start (and end) with systemd?

2012-06-25 Thread Stef Bon
Hi, I'm working on a construction which creates workspaces for a user when he/she logs in. These workspaces are directories with vritual directories managed by a FUSE fs, with access to mountable resources like harddisks, usb sticks, cdroms but also network services like smb shares. In practice

Re: [systemd-devel] Ubuntu, Upstart, and systemd

2012-05-10 Thread Stef Bon
Shuttleworth means something else. It's better to try to start a contact him (and the team he refers to) than go into one subject he mentions, to check what he means. I can imagine something of what he describes, but I cannot speak for him. Stef Bon the Netherlands

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/4/29 Nikolaus Rath nikol...@rath.org: Hello, I am struggling to come up with the correct way to define a unit configuration for a FUSE based network file system. Generally, the file system needs to be mounted and unmounted with its own programs (rather than with mount and umount). The

Re: [systemd-devel] About autofs: no handling of expire??

2012-05-02 Thread Stef Bon
map with indirect maps with the automounter, and somehow I have to find a way to make a specific directory a direct autofs mountpoint. Thanks, Stef Bon ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/5/2 Nikolaus Rath nikol...@rath.org: On 05/02/2012 03:53 PM, Lennart Poettering wrote: On Sat, 28.04.12 20:41, Nikolaus Rath (nikol...@rath.org) wrote: automatically, without any manual kludges. We won't support any other hacks in systemd. Sorry. Ah, ok. Mounting with /bin/mount -t

[systemd-devel] About autofs: no handling of expire??

2012-05-01 Thread Stef Bon
Hi, I've been looking into the code how systemd handles the automounting. I've got two issues: a. I've found the handling of the missing packet (autofs_ptype_missing_direct), which triggers the mounting. But I did not found the handling of the expire packet (autofs_ptype_expire_direct). Is this

Re: [systemd-devel] RFC: User sessions in systemd: `systemd --user` - code and experiences

2012-04-14 Thread Stef Bon
2012/4/13 Kok, Auke-jan H auke-jan.h@intel.com: All, As some of you might know, I've been working on integrating systemd in Tizen. While currently the Tizen OS is still using sysvinit, we hope to merge systemd in the near future and even expand the use of systemd throughout the system

[systemd-devel] Status multiseat?

2011-12-05 Thread Stef Bon
Hi, I'm informing the status of multiseat. I've read here: http://fedoraproject.org/wiki/Features/ckremoval that there is worked on automatic detection of multiseat. Some notes: . automatic is only possible for local seats . maximum local seats is the minimum of terminals and keyboards (=N)

Re: [systemd-devel] New pam module to start a session.

2011-10-15 Thread Stef Bon
No I didn't. I will post it on the pam maillist, see what they think of it. Stef 2011/10/14 Daniel J Walsh dwa...@redhat.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/14/2011 04:34 AM, Stef Bon wrote: Hi, I've rewritten an existing pam module pam_script. What it does: . runs

Re: [systemd-devel] Question about nspawn.c

2011-08-24 Thread Stef Bon
, using arg_directory A bind mount I can understand, but a move?? Moving the root to arg_directory will overwrite the just created mounts done in line 759? These mounts are created in this namespace... Stef 2011/8/24 Lennart Poettering lenn...@poettering.net: On Wed, 24.08.11 11:41, Stef Bon (stef

Re: [systemd-devel] Question about nspawn.c

2011-08-24 Thread Stef Bon
2011/8/24 Lennart Poettering lenn...@poettering.net: On Wed, 24.08.11 14:38, Stef Bon (stef...@gmail.com) wrote: Please let me explain why I think this is strange to me: in line 713 there is a call to clone, so here the cloned child process has it's own namespace. in line 759 all

[systemd-devel] Question about nspawn.c

2011-08-22 Thread Stef Bon
the subirectories are already mounted. It looks more a bit to make the new namespace consistent or something like that. Can someone explain this? Thanks in advance. Stef Bon the Netherlands btw I know what a bind mount is, but the combination MS_BIND | MS_MOVE in this context is the issue

Re: [systemd-devel] namespace: session dependant mtab

2011-08-03 Thread Stef Bon
2011/8/3 Kay Sievers kay.siev...@vrfy.org: On Wed, Aug 3, 2011 at 16:07, Stef Bon stef...@gmail.com wrote: Isn't it a good idea to provide every different namespace a own mtab, containing only the mounts visible for that namespace? You mean /etc/mtab? Systemd requires that to be symlink

Re: [systemd-devel] Howto run script at begin and end of session: sessionsupport?

2011-07-15 Thread Stef Bon
2011/7/15 Lennart Poettering lenn...@poettering.net: On Fri, 15.07.11 08:24, Stef Bon (stef...@gmail.com) wrote: /etc/ConsoleKit/run-session.d We currently don't support this in systemd, and right now I see no good usecase that might convince us to add that. Can you elaborate what you

Re: [systemd-devel] [ANNOUNCE] systemd v30

2011-07-14 Thread Stef Bon
Hi, what I've read is great, about session support and multiseat. In my opinion the managment of seats and sessions always could be much better, and your work looks good. Futher it's smart to assign a usb hub to a certain seat and let all devices connected be part of the same seat. In practice

Re: [systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-29 Thread Stef Bon
2011/6/28 Stef Bon stef...@gmail.com: 2011/6/27 Lennart Poettering lenn...@poettering.net: On Sat, 25.06.11 21:57, Stef Bon (stef...@gmail.com) wrote: Hi, I've been able to make my shiny new LFS system boot using systemd, but still with errors. When the tty's are activated, Iget

Re: [systemd-devel] [HEADSUP] We no longer spawn 6 gettys by default

2011-06-29 Thread Stef Bon
Hi, I think it's ok to only activate the getty programs on demand. Maybe use only mingetty?? Who works on the serial line these days? mingetty is faster I would like to add the following: I had some trouble with logmessages on my screen while the login is there already. This has probably

Re: [systemd-devel] [HEADSUP] We no longer spawn 6 gettys by default

2011-06-29 Thread Stef Bon
Ok, I did not expect this. Ok, stupid idea, forget it. But what about the log console, redirecting log to one of the virtual consoles, reachable via alt-fx? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-25 Thread Stef Bon
Hi, I've been able to make my shiny new LFS system boot using systemd, but still with errors. When the tty's are activated, Iget the message: stty: standard input: Inappropriate ioctl for device When I'm logged in, I see the various tty files have root:tty rights, but not tty1 - tty6, they

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-21 Thread Stef Bon
2011/6/20 Marius Tolzmann tolzm...@molgen.mpg.de: Hi there.. we are also using a self-maintained LFS based gnu/linux here. we switched to systemd in Nov 2010 and it worked fine from the start.. What version are you using? And what version of kernel? Did you have to tune your kernel?? (for

[systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
Hi, I'm trying to build systemd on a shiny new LFS system. I roughly followed the instructions here: http://www.linuxfromscratch.org/lfs/view/development/index.html Since this is a very minimal system, you have to add extra software: gperf libcap attr expat libxml2 dbus No PAM, no gtk, no

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
2011/6/20 Marius Tolzmann tolzm...@molgen.mpg.de: Hi there.. we are also using a self-maintained LFS based gnu/linux here. we switched to systemd in Nov 2010 and it worked fine from the start.. since we started a new LFS we decided not to integrate any support for sysv anymore by compiling

[systemd-devel] Howro install from source?

2011-06-03 Thread Stef Bon
Hi, I would like to try systemd on my machine. As someone who installs everything from source, I would like to do that also for systemd. I cannot find a guide anywhere to do this, as I expect a package as systemd requires more than just ./configure make make install some addition configuration

Re: [systemd-devel] Howro install from source?

2011-06-03 Thread Stef Bon
Thanks, this is a good source of info. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Designing a scheduler interface

2011-04-19 Thread Stef Bon
cannot react right now, but this issue has my interest. I expect to react later.. In communication it's very important to treat each other with respect. As soccertrainer (and maybe soon teacher mathematics) I really think that's important when working together. Stef Bon 2011/4/19 Michal Schmidt

Re: [systemd-devel] Designing a scheduler interface

2011-04-18 Thread Stef Bon
that I'snt it a bit arrogant to think this? In my opinion people are can be disappointed by the way we are treated by another, not by what we do or don't. I've been called arrogant before, but you are really king here! Hale king Lennart! Stef Bon the Netherlands Lennart -- Lennart