Re: How can kill(-1, 0) return EPERM?

2019-12-01 Thread Konstantin Belousov
On Mon, Dec 02, 2019 at 02:11:14AM +0300, Dmitry Marakasov wrote: > * Konstantin Belousov (kostik...@gmail.com) wrote: > > > > > > > I'm helping to investigate some userspace issue [1], where kill(-1, > > > > > > SIGKILL) > > > > > > fails with EPERM. I've managed to isolate this case in a small

Re: How can kill(-1, 0) return EPERM?

2019-12-01 Thread Dmitry Marakasov
* Konstantin Belousov (kostik...@gmail.com) wrote: > > > > > I'm helping to investigate some userspace issue [1], where kill(-1, > > > > > SIGKILL) > > > > > fails with EPERM. I've managed to isolate this case in a small > > > > > program: > > > > > > > > > > > > > > > ``` > > > > > #include

Re: How can kill(-1, 0) return EPERM?

2019-12-01 Thread Konstantin Belousov
On Sun, Dec 01, 2019 at 03:24:11AM +0300, Dmitry Marakasov wrote: > * Konstantin Belousov (kostik...@gmail.com) wrote: > > > > > I'm helping to investigate some userspace issue [1], where kill(-1, > > > > SIGKILL) > > > > fails with EPERM. I've managed to isolate this case in a small program: >

Re: How can kill(-1, 0) return EPERM?

2019-11-30 Thread Dmitry Marakasov
* Konstantin Belousov (kostik...@gmail.com) wrote: > > > I'm helping to investigate some userspace issue [1], where kill(-1, > > > SIGKILL) > > > fails with EPERM. I've managed to isolate this case in a small program: > > > > > > > > > ``` > > > #include > > > #include > > > #include > > >

Re: How can kill(-1, 0) return EPERM?

2019-11-29 Thread Konstantin Belousov
On Fri, Nov 29, 2019 at 07:45:09PM +0300, Dmitry Marakasov wrote: > * Dmitry Marakasov (amd...@amdmi3.ru) wrote: > > > I'm helping to investigate some userspace issue [1], where kill(-1, SIGKILL) > > fails with EPERM. I've managed to isolate this case in a small program: > > > > > > ``` > >

Re: How can kill(-1, 0) return EPERM?

2019-11-29 Thread Dmitry Marakasov
* Dmitry Marakasov (amd...@amdmi3.ru) wrote: > I'm helping to investigate some userspace issue [1], where kill(-1, SIGKILL) > fails with EPERM. I've managed to isolate this case in a small program: > > > ``` > #include > #include > #include > #include > #include > #include > > int main()

How can kill(-1, 0) return EPERM?

2019-11-29 Thread Dmitry Marakasov
Hi! I'm helping to investigate some userspace issue [1], where kill(-1, SIGKILL) fails with EPERM. I've managed to isolate this case in a small program: ``` #include #include #include #include #include #include int main() { if (setuid(66) == -1) // uucp, just for the test