luis changed the topic of #slime to: SLIME, the Superior Lisp Interaction Mode for Emacs | https://common-lisp.net/project/slime | https://irclog.tymoon.eu/freenode/%23slime | https://irclog.whitequark.org/slime
gendl has quit [Ping timeout: 260 seconds]
gendl has joined #slime
edgar-rft has joined #slime
edgar-rft has quit [Quit: Leaving]
edgar-rft has joined #slime
pankajsg has quit [Ping timeout: 265 seconds]
casual_friday has joined #slime
casual_friday has quit [Quit: Connection closed]
pankajsg has joined #slime
cage_ has joined #slime
Melchizedek6309 has joined #slime
Melchizedek6809 has quit [Ping timeout: 260 seconds]
SpaceIgor2075 has joined #slime
nij has joined #slime
<nij> Hello :D Is it possible to secure the swank server? I'm running one as root, and don't want that server to be accessed by other users.
<nij> An idea is to chmod of the unix socket it creates to 600, and chown to root:root.
<nij> But I cannot find where that socket is..
SpaceIgor2075 has quit [Ping timeout: 265 seconds]
cage_ has quit [Quit: Leaving]
<pjb> nij: swank uses a NETWORK socket, so you would find this socket on the NETWORK ;-)
<pjb> nij: there are no access control on the network.
<pjb> nij: all you can do, is to implement protocols for identification and authentication. Stuff like TLS etc.
<pjb> nij: there's no easy solution. You could become a hero, patching swank and slime to use TLS and exchange certificates.
<pjb> nij: one alternative is to have swank listen on a localhost port, and to use a ssh tunnel to allow remote connections.
<pjb> nij: but this only protects from the external network, not from local users.
<nij> It sounds like for my use I need to look into other sockets package.. e.g. usocket.
<pjb> One patch that could perhaps be implemented easily would be to use not sockets, but named pipes.
<pjb> nij: for example, search for 'defimplementation create-socket' in swank sources. On ccl, make-socket takes a :address-family parameter, and you could pass :file to use a unix domain socket (ie. a named pipe), with a :local-filename parameter specifying the pipe file.
<pjb> nij: then you would have to patch similarly slime to connect using the pipe file.
<pjb> In that case, you could use unix access rights to protect the pipe.
<pjb> Become a hero, implement a patch!
<nij> pjb: I'm still a noob! But perhaps will do one day! :D
nij has quit [Quit: ERC (IRC client for Emacs 27.1)]