Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Netscape is not a newsreader, and probably never shall be. -- Tom Christiansen


devel / comp.unix.programmer / Re: Nonsense... (Was: Response to my recent thread about TIOCSTI)

SubjectAuthor
* Response to my recent thread about TIOCSTIKenny McCormack
`* Response to my recent thread about TIOCSTIKaz Kylheku
 `* Response to my recent thread about TIOCSTIKenny McCormack
  `* Response to my recent thread about TIOCSTIKaz Kylheku
   +* Response to my recent thread about TIOCSTIcandycanearter07
   |+* Here's your chance for fame & fortune (Was: Response to my recent thread about TKenny McCormack
   ||`* Here's your chance for fame & fortune (Was: Response to myKaz Kylheku
   || `* Here's your chance for fame & fortune (Was: Response to my recentcandycanearter07
   ||  `- Here's your chance for fame & fortune (Was: Response to my recentNicolas George
   |+* Response to my recent thread about TIOCSTIKaz Kylheku
   ||`* Response to my recent thread about TIOCSTIcandycanearter07
   || `* Response to my recent thread about TIOCSTIScott Lurndal
   ||  +- Response to my recent thread about TIOCSTIcandycanearter07
   ||  `* Response to my recent thread about TIOCSTIMuttley
   ||   +* Response to my recent thread about TIOCSTIScott Lurndal
   ||   |+* Response to my recent thread about TIOCSTIMuttley
   ||   ||+- Response to my recent thread about TIOCSTIScott Lurndal
   ||   ||`- Response to my recent thread about TIOCSTIRainer Weikusat
   ||   |`* Response to my recent thread about TIOCSTIKaz Kylheku
   ||   | `* Response to my recent thread about TIOCSTIScott Lurndal
   ||   |  `* Off-topic drivel (Was: Response to my recent thread about TIOCSTI)Kenny McCormack
   ||   |   `- Off-topic drivel (Was: Response to my recent thread about TIOCSTI)Philip Guenther
   ||   `- Response to my recent thread about TIOCSTIKaz Kylheku
   |`- Response to my recent thread about TIOCSTIRainer Weikusat
   `- Nonsense... (Was: Response to my recent thread about TIOCSTI)Scott Lurndal

1
Response to my recent thread about TIOCSTI

<uhus3a$2v05f$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10749&group=comp.unix.programmer#10749

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 00:56:10 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uhus3a$2v05f$1@news.xmission.com>
Injection-Date: Thu, 2 Nov 2023 00:56:10 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3113135"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 2 Nov 2023 00:56 UTC

Just to keep us all up to date, none of the responses (*) so far have been
either useful or on-topic. This is not to disparage the writers of those
responses, but rather to advise other possible responders that the status
of the question is still: Open. And that any useful and topical response
from them would still be welcome and greatly appreciated.

Note that I have no interest in debating any of the topics raised by those
responders, but those posters should feel free to start threads of their
own in which these topics can be discussed, if they are so inclined.

(*) On the TIOCSTI thread.

--
Note that Oprah actually is all the things that The Donald only wishes he were.
For one thing, she actually *is* a billionaire. She's also actually self-made,
came from nothing, knows how to run businesses, never went bankrupt, is smart
and is mentally stable.

Re: Response to my recent thread about TIOCSTI

<20231101180448.335@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10750&group=comp.unix.programmer#10750

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 01:10:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <20231101180448.335@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
Injection-Date: Thu, 2 Nov 2023 01:10:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef9318d42c2ed0d00615b31aed4999a9";
logging-data="1961499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rJeiJ5yRhfaiPoou/5cYmn62gh7VFY6o="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:neHLLRKfdYoaJ62hADuGtCevBUM=
 by: Kaz Kylheku - Thu, 2 Nov 2023 01:10 UTC

On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> (*) On the TIOCSTI thread.

TIOCSTI is a gaping, ancient security hole.

OpenBSD has removed it.

Linux merged a commit which allows TIOCSTI to be disabled.
This has discussion in the commit message.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.6&id=83efeeeb3d04b22aaed1df99bc70a48fe9d22c4d

I can easily see the default changing to disabled by default in the
future, and the thing completely disappearing.

That's all there is to it.

Don't write new code which uses this; it's not guaranteed to be there.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Response to my recent thread about TIOCSTI

<uhuubl$2v1k0$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10751&group=comp.unix.programmer#10751

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 01:34:45 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uhuubl$2v1k0$1@news.xmission.com>
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com>
Injection-Date: Thu, 2 Nov 2023 01:34:45 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3114624"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 2 Nov 2023 01:34 UTC

In article <20231101180448.335@kylheku.com>,
Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> (*) On the TIOCSTI thread.
>
>TIOCSTI is a gaping, ancient security hole.

More off-topic text. But, as noted, feel free to start a new thread to
talk all you want about it. Or anything else that happens to be on your
mind.

--
What are your thoughts on Alabama politicians declaring Donald Trump one
of the greatest presidents ever?

Alabama is ranked #47 in education out of 50 states. Now we know why.

Re: Response to my recent thread about TIOCSTI

<20231101190346.588@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10752&group=comp.unix.programmer#10752

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 02:24:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <20231101190346.588@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
Injection-Date: Thu, 2 Nov 2023 02:24:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef9318d42c2ed0d00615b31aed4999a9";
logging-data="1982362"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4afs0w5yhQds16Y00uiWMwfVw8De49ns="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:ao1v+2n9zggCNETZwonJjS57xCc=
 by: Kaz Kylheku - Thu, 2 Nov 2023 02:24 UTC

On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <20231101180448.335@kylheku.com>,
> Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>>On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>>> (*) On the TIOCSTI thread.
>>
>>TIOCSTI is a gaping, ancient security hole.
>
> More off-topic text. But, as noted, feel free to start a new thread to
> talk all you want about it. Or anything else that happens to be on your
> mind.

The issue is that who owns /dev/pts/N (as in the ownership and
permissions you see if you run "ls -l /dev/pts/N" don't determine
every aspect of what you can do with the TTY device.

Once open, TTY descriptor can be shared by multiple processes
which run in different security domains; it would be a bad idea
to be able to stuff input into them.

(There are other ways to stuff input, via external loopback.
That's what security holes in terminal emulators are about:
situations whereby a terminal will echo back a string sent to it.)

One kernel version (that I happen to work with) routes that ioctl
to this function:

static int tiocsti(struct tty_struct *tty, char __user *p)
{ char ch, mbz = 0;
struct tty_ldisc *ld;

if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
return -EPERM;
if (get_user(ch, p))
return -EFAULT;
tty_audit_tiocsti(tty, ch);
ld = tty_ldisc_ref_wait(tty);
if (!ld)
return -EIO;
if (ld->ops->receive_buf)
ld->ops->receive_buf(tty, &ch, &mbz, 1);
tty_ldisc_deref(ld);
return 0;
}

So the check you have discovered is done upfront before anything. If this is
not your controlling tty, and you don't have admin caps, then EPERM.

The code is the code; the reason you see the behavior is that the code is what
it is, and that is the way it is due to the security aspect of TIOCSTI.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Response to my recent thread about TIOCSTI

<uhvfe9$1pbr3$5@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10753&group=comp.unix.programmer#10753

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@thanks.net (candycanearter07)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 01:26:17 -0500
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <uhvfe9$1pbr3$5@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 06:26:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a4f03e909612295087da03e405a3adfd";
logging-data="1879907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19q7SYd6m+NbneXhFsPJrS/m+viXbKDJZIE2kk65N2wKg=="
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:kC70ovcGxmhSaC3ew2dcVAJcfKo=
In-Reply-To: <20231101190346.588@kylheku.com>
Content-Language: en-US
 by: candycanearter07 - Thu, 2 Nov 2023 06:26 UTC

On 11/1/23 21:24, Kaz Kylheku wrote:
> On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> In article <20231101180448.335@kylheku.com>,
>> Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>>> On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>>>> (*) On the TIOCSTI thread.
>>>
>>> TIOCSTI is a gaping, ancient security hole.
>>
>> More off-topic text. But, as noted, feel free to start a new thread to
>> talk all you want about it. Or anything else that happens to be on your
>> mind.
>
> The issue is that who owns /dev/pts/N (as in the ownership and
> permissions you see if you run "ls -l /dev/pts/N" don't determine
> every aspect of what you can do with the TTY device.
>
> Once open, TTY descriptor can be shared by multiple processes
> which run in different security domains; it would be a bad idea
> to be able to stuff input into them.
>
> (There are other ways to stuff input, via external loopback.
> That's what security holes in terminal emulators are about:
> situations whereby a terminal will echo back a string sent to it.)
>
> One kernel version (that I happen to work with) routes that ioctl
> to this function:
>
> static int tiocsti(struct tty_struct *tty, char __user *p)
> {
> char ch, mbz = 0;
> struct tty_ldisc *ld;
>
> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
> return -EPERM;
> if (get_user(ch, p))
> return -EFAULT;
> tty_audit_tiocsti(tty, ch);
> ld = tty_ldisc_ref_wait(tty);
> if (!ld)
> return -EIO;
> if (ld->ops->receive_buf)
> ld->ops->receive_buf(tty, &ch, &mbz, 1);
> tty_ldisc_deref(ld);
> return 0;
> }
>
> So the check you have discovered is done upfront before anything. If this is
> not your controlling tty, and you don't have admin caps, then EPERM.
>
> The code is the code; the reason you see the behavior is that the code is what
> it is, and that is the way it is due to the security aspect of TIOCSTI.
>

Why does it return negative error codes?
--
user <candycane> is generated from /dev/urandom

Here's your chance for fame & fortune (Was: Response to my recent thread about TIOCSTI)

<uhvg0e$2vag3$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10754&group=comp.unix.programmer#10754

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Here's your chance for fame & fortune (Was: Response to my recent thread about TIOCSTI)
Date: Thu, 2 Nov 2023 06:35:58 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uhvg0e$2vag3$1@news.xmission.com>
References: <uhus3a$2v05f$1@news.xmission.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
Injection-Date: Thu, 2 Nov 2023 06:35:58 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3123715"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 2 Nov 2023 06:35 UTC

In article <uhvfe9$1pbr3$5@dont-email.me>,
candycanearter07 <no@thanks.net> wrote:
....
>Why does it return negative error codes?

I don't know. Why don't you start a new thread where you and he can
discuss this to your mutual heart's content?

--
If your answer to the question below is any number other than 1, then you're an atheist.

Q: How many religions are worthy of respect? (i.e., how many religions are valid?)

Re: Response to my recent thread about TIOCSTI

<20231102084124.339@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10755&group=comp.unix.programmer#10755

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 15:43:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20231102084124.339@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
Injection-Date: Thu, 2 Nov 2023 15:43:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef9318d42c2ed0d00615b31aed4999a9";
logging-data="2396497"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ot5twUGafDjySHVZcUTuQJgI1vkBOY9U="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:7ufiVdD0pCkLGrRP7k1DlOJqSR4=
 by: Kaz Kylheku - Thu, 2 Nov 2023 15:43 UTC

On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>> static int tiocsti(struct tty_struct *tty, char __user *p)
>> {
>> char ch, mbz = 0;
>> struct tty_ldisc *ld;
>>
>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>> return -EPERM;
>
> Why does it return negative error codes?

That's how it works in the Linux kernel. That -EPERM will turn,
at the system call interface in the C library, into a -1 return
value from ioctl, and a positive EPERM value in errno.

The kernel cannot set errno; that's purely a user space gadget
(embroiled in threads: each thread has it own errno location).

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Here's your chance for fame & fortune (Was: Response to my recent thread about TIOCSTI)

<20231102084856.533@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10756&group=comp.unix.programmer#10756

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Here's your chance for fame & fortune (Was: Response to my
recent thread about TIOCSTI)
Date: Thu, 2 Nov 2023 15:50:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20231102084856.533@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com>
<uhvfe9$1pbr3$5@dont-email.me> <uhvg0e$2vag3$1@news.xmission.com>
Injection-Date: Thu, 2 Nov 2023 15:50:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef9318d42c2ed0d00615b31aed4999a9";
logging-data="2403883"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KO7KNWQ1+kgrghGuCLXn1qmutgVCDVD8="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:FLBxXTljaYONWWRec1sKyk2p5U4=
 by: Kaz Kylheku - Thu, 2 Nov 2023 15:50 UTC

On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <uhvfe9$1pbr3$5@dont-email.me>,
> candycanearter07 <no@thanks.net> wrote:
> ...
>>Why does it return negative error codes?
>
> I don't know. Why don't you start a new thread where you and he can
> discuss this to your mutual heart's content?

The most probable answer to that that candycanearter07 already started a
subthread for that purpose, as is the long-standing prevalent practice.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Here's your chance for fame & fortune (Was: Response to my recent thread about TIOCSTI)

<ui0qn8$29jdn$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10757&group=comp.unix.programmer#10757

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@thanks.net (candycanearter07)
Newsgroups: comp.unix.programmer
Subject: Re: Here's your chance for fame & fortune (Was: Response to my recent
thread about TIOCSTI)
Date: Thu, 2 Nov 2023 13:44:56 -0500
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ui0qn8$29jdn$2@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com>
<uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com>
<uhvfe9$1pbr3$5@dont-email.me> <uhvg0e$2vag3$1@news.xmission.com>
<20231102084856.533@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 18:44:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="105fdcaa4d1f0d6a99796c1ef1a08f47";
logging-data="2411959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CjqCSrwbA8dFyPjYN+cPnBsj1NDqbOKeeEmuOE88FsA=="
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:05OJSyfKw0ys06lbDgF6PY7xDXY=
In-Reply-To: <20231102084856.533@kylheku.com>
Content-Language: en-US
 by: candycanearter07 - Thu, 2 Nov 2023 18:44 UTC

On 11/2/23 10:50, Kaz Kylheku wrote:
> On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> In article <uhvfe9$1pbr3$5@dont-email.me>,
>> candycanearter07 <no@thanks.net> wrote:
>> ...
>>> Why does it return negative error codes?
>>
>> I don't know. Why don't you start a new thread where you and he can
>> discuss this to your mutual heart's content?
>
> The most probable answer to that that candycanearter07 already started a
> subthread for that purpose, as is the long-standing prevalent practice.
>

Wait, are you supposed to create a new thread or a sub thread? How do
you create a new thread replying to a message?
--
user <candycane> is generated from /dev/urandom

Re: Response to my recent thread about TIOCSTI

<ui0rdo$29jdm$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10758&group=comp.unix.programmer#10758

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@thanks.net (candycanearter07)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 13:56:56 -0500
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ui0rdo$29jdm$4@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
<20231102084124.339@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 18:56:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="105fdcaa4d1f0d6a99796c1ef1a08f47";
logging-data="2411958"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W/wpn5Gn72Lo9olVU3//9zD5/744EwWf6GxNGfMOv7w=="
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:bxJzktQ/4BlMDtXrkCsI+fUQEWE=
Content-Language: en-US
In-Reply-To: <20231102084124.339@kylheku.com>
 by: candycanearter07 - Thu, 2 Nov 2023 18:56 UTC

On 11/2/23 10:43, Kaz Kylheku wrote:
> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>> {
>>> char ch, mbz = 0;
>>> struct tty_ldisc *ld;
>>>
>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>> return -EPERM;
>>
>> Why does it return negative error codes?
>
> That's how it works in the Linux kernel. That -EPERM will turn,
> at the system call interface in the C library, into a -1 return
> value from ioctl, and a positive EPERM value in errno.
>
> The kernel cannot set errno; that's purely a user space gadget
> (embroiled in threads: each thread has it own errno location).
>

Oh cool, is that why so many C calls return -1 on error? I always
wondered about that..
--
user <candycane> is generated from /dev/urandom

Re: Here's your chance for fame & fortune (Was: Response to my recent thread about TIOCSTI)

<654405da$0$8238$426a74cc@news.free.fr>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10759&group=comp.unix.programmer#10759

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp4-1.free.fr!not-for-mail
Newsgroups: comp.unix.programmer
From: nicolas$...@salle-s.org (Nicolas George)
Subject: Re: Here's your chance for fame & fortune (Was: Response to my recent
thread about TIOCSTI)
Sender: george@phare.invalid (Nicolas George)
X-Newsreader: Flrn (0.9.20070704)
References: <uhus3a$2v05f$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <uhvg0e$2vag3$1@news.xmission.com> <20231102084856.533@kylheku.com> <ui0qn8$29jdn$2@dont-email.me>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Date: 02 Nov 2023 20:26:02 GMT
Lines: 7
Message-ID: <654405da$0$8238$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 02 Nov 2023 21:26:02 CET
NNTP-Posting-Host: 129.199.129.80
X-Trace: 1698956762 news-1.free.fr 8238 129.199.129.80:41758
X-Complaints-To: abuse@proxad.net
 by: Nicolas George - Thu, 2 Nov 2023 20:26 UTC

candycanearter07 , dans le message <ui0qn8$29jdn$2@dont-email.me>, a
écrit :
> Wait, are you supposed to create a new thread or a sub thread? How do
> you create a new thread replying to a message?

You reply, and the reply itself is a one-message sub-thread. Then if people
reply to the reply, it becomes the start of a non-trivial sub-thread.

Re: Response to my recent thread about TIOCSTI

<C3U0N.266529$rbid.264842@fx18.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10760&group=comp.unix.programmer#10760

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Response to my recent thread about TIOCSTI
Newsgroups: comp.unix.programmer
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me>
Lines: 27
Message-ID: <C3U0N.266529$rbid.264842@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 02 Nov 2023 20:58:10 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 02 Nov 2023 20:58:10 GMT
X-Received-Bytes: 1817
 by: Scott Lurndal - Thu, 2 Nov 2023 20:58 UTC

candycanearter07 <no@thanks.net> writes:
>On 11/2/23 10:43, Kaz Kylheku wrote:
>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>> {
>>>> char ch, mbz = 0;
>>>> struct tty_ldisc *ld;
>>>>
>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>> return -EPERM;
>>>
>>> Why does it return negative error codes?
>>
>> That's how it works in the Linux kernel. That -EPERM will turn,
>> at the system call interface in the C library, into a -1 return
>> value from ioctl, and a positive EPERM value in errno.
>>
>> The kernel cannot set errno; that's purely a user space gadget
>> (embroiled in threads: each thread has it own errno location).
>>
>
>Oh cool, is that why so many C calls return -1 on error? I always
>wondered about that..

Returning -1 on system call failure dates back to the first
versions of Unix. It was standardized by SVID and ultimately
POSIX.

Re: Response to my recent thread about TIOCSTI

<ui1303$2cobh$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10761&group=comp.unix.programmer#10761

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@thanks.net (candycanearter07)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Thu, 2 Nov 2023 16:06:11 -0500
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ui1303$2cobh$1@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
<20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me>
<C3U0N.266529$rbid.264842@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 21:06:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="105fdcaa4d1f0d6a99796c1ef1a08f47";
logging-data="2515313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VU1mpKdaPykqh+c7UuE9EZgbwIsmXw+I7RZAeewk+6Q=="
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:ZOGtVJFYFT89lUgBs81TI78Fep0=
Content-Language: en-US
In-Reply-To: <C3U0N.266529$rbid.264842@fx18.iad>
 by: candycanearter07 - Thu, 2 Nov 2023 21:06 UTC

On 11/2/23 15:58, Scott Lurndal wrote:
> candycanearter07 <no@thanks.net> writes:
>> On 11/2/23 10:43, Kaz Kylheku wrote:
>>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>>> {
>>>>> char ch, mbz = 0;
>>>>> struct tty_ldisc *ld;
>>>>>
>>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>>> return -EPERM;
>>>>
>>>> Why does it return negative error codes?
>>>
>>> That's how it works in the Linux kernel. That -EPERM will turn,
>>> at the system call interface in the C library, into a -1 return
>>> value from ioctl, and a positive EPERM value in errno.
>>>
>>> The kernel cannot set errno; that's purely a user space gadget
>>> (embroiled in threads: each thread has it own errno location).
>>>
>>
>> Oh cool, is that why so many C calls return -1 on error? I always
>> wondered about that..
>
> Returning -1 on system call failure dates back to the first
> versions of Unix. It was standardized by SVID and ultimately
> POSIX.

Cool to know!
--
user <candycane> is generated from /dev/urandom

Re: Response to my recent thread about TIOCSTI

<ui36pk$2rjsd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10762&group=comp.unix.programmer#10762

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 3 Nov 2023 16:23:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <ui36pk$2rjsd$1@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me> <C3U0N.266529$rbid.264842@fx18.iad>
Injection-Date: Fri, 3 Nov 2023 16:23:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0a7167a70e12459a370024fe44ec9e66";
logging-data="3002253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yzJZlUngaip8fUixZcAq0"
Cancel-Lock: sha1:7RNi7Rp8kRZZWNEcQGoSyyK++rA=
 by: Mutt...@dastardlyhq.com - Fri, 3 Nov 2023 16:23 UTC

On Thu, 02 Nov 2023 20:58:10 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>candycanearter07 <no@thanks.net> writes:
>>On 11/2/23 10:43, Kaz Kylheku wrote:
>>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>>> {
>>>>> char ch, mbz = 0;
>>>>> struct tty_ldisc *ld;
>>>>>
>>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>>> return -EPERM;
>>>>
>>>> Why does it return negative error codes?
>>>
>>> That's how it works in the Linux kernel. That -EPERM will turn,
>>> at the system call interface in the C library, into a -1 return
>>> value from ioctl, and a positive EPERM value in errno.
>>>
>>> The kernel cannot set errno; that's purely a user space gadget
>>> (embroiled in threads: each thread has it own errno location).
>>>
>>
>>Oh cool, is that why so many C calls return -1 on error? I always
>>wondered about that..
>
>Returning -1 on system call failure dates back to the first
>versions of Unix. It was standardized by SVID and ultimately
>POSIX.

Though if they were going to return -1 as a fail then it would have made a lot
more sense to return the negative error and dispense with errno altogether
except where an integer error can't be returned.

And just to confuse matters, the pthreads library functions DO return the error
code but its a positive value.

Re: Response to my recent thread about TIOCSTI

<0l91N.279082$8fO.52170@fx15.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10763&group=comp.unix.programmer#10763

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Response to my recent thread about TIOCSTI
Newsgroups: comp.unix.programmer
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me> <C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me>
Lines: 44
Message-ID: <0l91N.279082$8fO.52170@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 03 Nov 2023 16:37:16 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 03 Nov 2023 16:37:16 GMT
X-Received-Bytes: 2783
 by: Scott Lurndal - Fri, 3 Nov 2023 16:37 UTC

Muttley@dastardlyhq.com writes:
>On Thu, 02 Nov 2023 20:58:10 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:
>>candycanearter07 <no@thanks.net> writes:
>>>On 11/2/23 10:43, Kaz Kylheku wrote:
>>>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>>>> {
>>>>>> char ch, mbz = 0;
>>>>>> struct tty_ldisc *ld;
>>>>>>
>>>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>>>> return -EPERM;
>>>>>
>>>>> Why does it return negative error codes?
>>>>
>>>> That's how it works in the Linux kernel. That -EPERM will turn,
>>>> at the system call interface in the C library, into a -1 return
>>>> value from ioctl, and a positive EPERM value in errno.
>>>>
>>>> The kernel cannot set errno; that's purely a user space gadget
>>>> (embroiled in threads: each thread has it own errno location).
>>>>
>>>
>>>Oh cool, is that why so many C calls return -1 on error? I always
>>>wondered about that..
>>
>>Returning -1 on system call failure dates back to the first
>>versions of Unix. It was standardized by SVID and ultimately
>>POSIX.
>
>Though if they were going to return -1 as a fail then it would have made a lot
>more sense to return the negative error and dispense with errno altogether
>except where an integer error can't be returned.
>
>And just to confuse matters, the pthreads library functions DO return the error
>code but its a positive value.

The introduction of threads pretty much invalidated the idea of
a global errno, which is why all newly defined POSIX system calls
return the error number directly rather than leveraging the
legacy errno (threaded applications define errno as a thread-local
variable to accomodate the legacy system calls).

Re: Response to my recent thread about TIOCSTI

<ui38av$2rsd8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10764&group=comp.unix.programmer#10764

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 3 Nov 2023 16:49:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <ui38av$2rsd8$1@dont-email.me>
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me> <C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me> <0l91N.279082$8fO.52170@fx15.iad>
Injection-Date: Fri, 3 Nov 2023 16:49:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0a7167a70e12459a370024fe44ec9e66";
logging-data="3010984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZkUWqReNiCye7dQ4hT6RS"
Cancel-Lock: sha1:UStcxvr7LZDeEqD9t5EpUASv5mI=
 by: Mutt...@dastardlyhq.com - Fri, 3 Nov 2023 16:49 UTC

On Fri, 03 Nov 2023 16:37:16 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Muttley@dastardlyhq.com writes:
>>On Thu, 02 Nov 2023 20:58:10 GMT
>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>candycanearter07 <no@thanks.net> writes:
>>>>On 11/2/23 10:43, Kaz Kylheku wrote:
>>>>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>>>>> {
>>>>>>> char ch, mbz = 0;
>>>>>>> struct tty_ldisc *ld;
>>>>>>>
>>>>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>>>>> return -EPERM;
>>>>>>
>>>>>> Why does it return negative error codes?
>>>>>
>>>>> That's how it works in the Linux kernel. That -EPERM will turn,
>>>>> at the system call interface in the C library, into a -1 return
>>>>> value from ioctl, and a positive EPERM value in errno.
>>>>>
>>>>> The kernel cannot set errno; that's purely a user space gadget
>>>>> (embroiled in threads: each thread has it own errno location).
>>>>>
>>>>
>>>>Oh cool, is that why so many C calls return -1 on error? I always
>>>>wondered about that..
>>>
>>>Returning -1 on system call failure dates back to the first
>>>versions of Unix. It was standardized by SVID and ultimately
>>>POSIX.
>>
>>Though if they were going to return -1 as a fail then it would have made a lot
>
>>more sense to return the negative error and dispense with errno altogether
>>except where an integer error can't be returned.
>>
>>And just to confuse matters, the pthreads library functions DO return the
>error
>>code but its a positive value.
>
>The introduction of threads pretty much invalidated the idea of
>a global errno, which is why all newly defined POSIX system calls
>return the error number directly rather than leveraging the
>legacy errno (threaded applications define errno as a thread-local
>variable to accomodate the legacy system calls).

Makes sense. Though I'd be interested in knowing what the original logic was
in returning -1 and setting a seperate error variable instead of just returning
the error directly.

Re: Response to my recent thread about TIOCSTI

<878r7erd0u.fsf@doppelsaurus.mobileactivedefense.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10765&group=comp.unix.programmer#10765

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rweiku...@talktalk.net (Rainer Weikusat)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 03 Nov 2023 16:56:49 +0000
Lines: 41
Message-ID: <878r7erd0u.fsf@doppelsaurus.mobileactivedefense.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net dXv3R15DFro8aouaLlaUlQGVX3QC8pbI/qmPyeMZOhgBdFiPE=
Cancel-Lock: sha1:JXYaMWZnmCzXXKIU8HAbW3ncer4= sha1:giRfpHAR3cANOWMOSW8HUYJ5Xaw= sha256:pqQT3iKFOmFOK42m60doMuk0SxdZILqw2Binz4iswEw=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
 by: Rainer Weikusat - Fri, 3 Nov 2023 16:56 UTC

candycanearter07 <no@thanks.net> writes:
> On 11/1/23 21:24, Kaz Kylheku wrote:
>> On 2023-11-02, Kenny McCormack <gazelle@shell.xmission.com> wrote:

[...]

>> One kernel version (that I happen to work with) routes that ioctl
>> to this function:
>> static int tiocsti(struct tty_struct *tty, char __user *p)
>> {
>> char ch, mbz = 0;
>> struct tty_ldisc *ld;
>> if ((current->signal->tty != tty) &&
>> !capable(CAP_SYS_ADMIN))
>> return -EPERM;
>> if (get_user(ch, p))
>> return -EFAULT;
>> tty_audit_tiocsti(tty, ch);
>> ld = tty_ldisc_ref_wait(tty);
>> if (!ld)
>> return -EIO;
>> if (ld->ops->receive_buf)
>> ld->ops->receive_buf(tty, &ch, &mbz, 1);
>> tty_ldisc_deref(ld);
>> return 0;
>> }
>> So the check you have discovered is done upfront before anything. If
>> this is
>> not your controlling tty, and you don't have admin caps, then EPERM.
>> The code is the code; the reason you see the behavior is that the
>> code is what
>> it is, and that is the way it is due to the security aspect of TIOCSTI.
>
> Why does it return negative error codes?

That's the usual Linux (possibly also elsewhere) convention: Code which
doesn't really care about the specific error value can check if the
result of the function is negative. If so, an error occurred. It can
then do whatever error path processing is needed, eg, decrement
reference counts or free locks, and return the value as is to its
caller. In this way, it'll eventually be propagated to userspace.

Re: Response to my recent thread about TIOCSTI

<QK91N.267114$rbid.172006@fx18.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10766&group=comp.unix.programmer#10766

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!paganini.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Response to my recent thread about TIOCSTI
Newsgroups: comp.unix.programmer
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me> <C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me> <0l91N.279082$8fO.52170@fx15.iad> <ui38av$2rsd8$1@dont-email.me>
Lines: 59
Message-ID: <QK91N.267114$rbid.172006@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 03 Nov 2023 17:04:48 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 03 Nov 2023 17:04:48 GMT
X-Received-Bytes: 3405
 by: Scott Lurndal - Fri, 3 Nov 2023 17:04 UTC

Muttley@dastardlyhq.com writes:
>On Fri, 03 Nov 2023 16:37:16 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:
>>Muttley@dastardlyhq.com writes:
>>>On Thu, 02 Nov 2023 20:58:10 GMT
>>>scott@slp53.sl.home (Scott Lurndal) wrote:
>>>>candycanearter07 <no@thanks.net> writes:
>>>>>On 11/2/23 10:43, Kaz Kylheku wrote:
>>>>>> On 2023-11-02, candycanearter07 <no@thanks.net> wrote:
>>>>>>>> static int tiocsti(struct tty_struct *tty, char __user *p)
>>>>>>>> {
>>>>>>>> char ch, mbz = 0;
>>>>>>>> struct tty_ldisc *ld;
>>>>>>>>
>>>>>>>> if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN))
>>>>>>>> return -EPERM;
>>>>>>>
>>>>>>> Why does it return negative error codes?
>>>>>>
>>>>>> That's how it works in the Linux kernel. That -EPERM will turn,
>>>>>> at the system call interface in the C library, into a -1 return
>>>>>> value from ioctl, and a positive EPERM value in errno.
>>>>>>
>>>>>> The kernel cannot set errno; that's purely a user space gadget
>>>>>> (embroiled in threads: each thread has it own errno location).
>>>>>>
>>>>>
>>>>>Oh cool, is that why so many C calls return -1 on error? I always
>>>>>wondered about that..
>>>>
>>>>Returning -1 on system call failure dates back to the first
>>>>versions of Unix. It was standardized by SVID and ultimately
>>>>POSIX.
>>>
>>>Though if they were going to return -1 as a fail then it would have made a lot
>>
>>>more sense to return the negative error and dispense with errno altogether
>>>except where an integer error can't be returned.
>>>
>>>And just to confuse matters, the pthreads library functions DO return the
>>error
>>>code but its a positive value.
>>
>>The introduction of threads pretty much invalidated the idea of
>>a global errno, which is why all newly defined POSIX system calls
>>return the error number directly rather than leveraging the
>>legacy errno (threaded applications define errno as a thread-local
>>variable to accomodate the legacy system calls).
>
>Makes sense. Though I'd be interested in knowing what the original logic was
>in returning -1 and setting a seperate error variable instead of just returning
>the error directly.
>

It's probably in the Lion's commentary somewhere.

https://en.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Operating_System

My copy is in a box somewhere.

Re: Response to my recent thread about TIOCSTI

<874ji2rbrw.fsf@doppelsaurus.mobileactivedefense.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10767&group=comp.unix.programmer#10767

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rweiku...@talktalk.net (Rainer Weikusat)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 03 Nov 2023 17:23:47 +0000
Lines: 30
Message-ID: <874ji2rbrw.fsf@doppelsaurus.mobileactivedefense.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
<20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me>
<C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me>
<0l91N.279082$8fO.52170@fx15.iad> <ui38av$2rsd8$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net e7AL83BGYiXm2v2Ex5lJlgUIFOQi4FHV+Qq8exEOAEkC7UhkE=
Cancel-Lock: sha1:DU5pOi4mLIQOScNPgI6ZxYWVcgk= sha1:ak96OfUNsfLasCD0JDTWVL5he/w= sha256:JJa/hLOgJwsDZOU+7/W1DnBH1/9juiBmtvh3Y1vrWGg=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
 by: Rainer Weikusat - Fri, 3 Nov 2023 17:23 UTC

Muttley@dastardlyhq.com writes:
> On Fri, 03 Nov 2023 16:37:16 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>>Muttley@dastardlyhq.com writes:

[...]

>>>Though if they were going to return -1 as a fail then it would have made a lot
>>
>>>more sense to return the negative error and dispense with errno altogether
>>>except where an integer error can't be returned.
>>>
>>>And just to confuse matters, the pthreads library functions DO return the
>>error
>>>code but its a positive value.
>>
>>The introduction of threads pretty much invalidated the idea of
>>a global errno, which is why all newly defined POSIX system calls
>>return the error number directly rather than leveraging the
>>legacy errno (threaded applications define errno as a thread-local
>>variable to accomodate the legacy system calls).
>
> Makes sense. Though I'd be interested in knowing what the original logic was
> in returning -1 and setting a seperate error variable instead of just returning
> the error directly.

At least up to 7th edition UNIX, system error codes didn't exist at
all. Functions returning integers would return -1 to indicate that an
error had occurred and the possible causes of such errors were listed in
the corresponding manual page.

Re: Response to my recent thread about TIOCSTI

<20231103103053.892@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10768&group=comp.unix.programmer#10768

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 3 Nov 2023 17:36:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <20231103103053.892@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
<20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me>
<C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me>
Injection-Date: Fri, 3 Nov 2023 17:36:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e148673ec60bf6f5c0bc2f39a587be1";
logging-data="3020305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fcDLu1FnE6TOp7wxUyl0pL1O0SxaNlJw="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:hp9f0+ttan8ioXr4g7B3tOS7bpE=
 by: Kaz Kylheku - Fri, 3 Nov 2023 17:36 UTC

On 2023-11-03, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> Though if they were going to return -1 as a fail then it would have made a lot
> more sense to return the negative error and dispense with errno altogether
> except where an integer error can't be returned.

errno is a complete stupidity, and some of the coding practices that you
have to use around it are even worse.

Like if you want to know whether a LONG_MAX or LONG_MIN return out of
strtol is a legitimate conversion or an error, you have to assign 0 to
errno first, and then check for a nonzero value if LONG_MAX or LONG_MIN
is returned.

(A co-op student could design a better API. Pointer to long where the
result is stored, and int return value.)

When a complex library function fails, which calls multiple system
calls, it's anyone's guess whether or how the value in errno pertains to
the failure cause.

> And just to confuse matters, the pthreads library functions DO return the error
> code but its a positive value.

Under threads, the errno expression expands to something like
(*__calculate_thread_specific_errno_location()) which is an expensive
function call.

Whoever designed the threads API would naturally have cringed at the
thought of the caller having to inspect errno after seeing a -1 value.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Response to my recent thread about TIOCSTI

<20231103103615.615@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10769&group=comp.unix.programmer#10769

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Response to my recent thread about TIOCSTI
Date: Fri, 3 Nov 2023 17:38:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20231103103615.615@kylheku.com>
References: <uhus3a$2v05f$1@news.xmission.com>
<20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com>
<20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me>
<20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me>
<C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me>
<0l91N.279082$8fO.52170@fx15.iad>
Injection-Date: Fri, 3 Nov 2023 17:38:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e148673ec60bf6f5c0bc2f39a587be1";
logging-data="3020305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VVqAugLJyS0mlNQ5reUDGOXp7hO2fES4="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:Ttg9PmVmmKTNwoUXckKkxTJl2/w=
 by: Kaz Kylheku - Fri, 3 Nov 2023 17:38 UTC

On 2023-11-03, Scott Lurndal <scott@slp53.sl.home> wrote:
> The introduction of threads pretty much invalidated the idea of
> a global errno, which is why all newly defined POSIX system calls
> return the error number directly rather than leveraging the
> legacy errno (threaded applications define errno as a thread-local
> variable to accomodate the legacy system calls).

Say, Scott, I wonder whether it's defined to do this:

{
int *errno_loc = &errno;

// then access *errno_loc multiple times in the scope
// with less overhead
}

E.g.:

*errno_loc = 0;
long val = strtol(..., ...);

if ((val == LONG_MAX || val == LONG_MIN) && *errno_loc != 0)
{
// out of range
}

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Response to my recent thread about TIOCSTI

<7gb1N.177699$sxoa.49926@fx13.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10770&group=comp.unix.programmer#10770

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Response to my recent thread about TIOCSTI
Newsgroups: comp.unix.programmer
References: <uhus3a$2v05f$1@news.xmission.com> <20231101180448.335@kylheku.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uhvfe9$1pbr3$5@dont-email.me> <20231102084124.339@kylheku.com> <ui0rdo$29jdm$4@dont-email.me> <C3U0N.266529$rbid.264842@fx18.iad> <ui36pk$2rjsd$1@dont-email.me> <0l91N.279082$8fO.52170@fx15.iad> <20231103103615.615@kylheku.com>
Lines: 24
Message-ID: <7gb1N.177699$sxoa.49926@fx13.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 03 Nov 2023 18:48:35 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 03 Nov 2023 18:48:35 GMT
X-Received-Bytes: 1748
 by: Scott Lurndal - Fri, 3 Nov 2023 18:48 UTC

Kaz Kylheku <864-117-4973@kylheku.com> writes:
>On 2023-11-03, Scott Lurndal <scott@slp53.sl.home> wrote:
>> The introduction of threads pretty much invalidated the idea of
>> a global errno, which is why all newly defined POSIX system calls
>> return the error number directly rather than leveraging the
>> legacy errno (threaded applications define errno as a thread-local
>> variable to accomodate the legacy system calls).
>
>Say, Scott, I wonder whether it's defined to do this:
>
> {
> int *errno_loc = &errno;
>
> // then access *errno_loc multiple times in the scope
> // with less overhead
> }

Close enough.

/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));

# define errno (*__errno_location ())

Off-topic drivel (Was: Response to my recent thread about TIOCSTI)

<ui3ksi$31eog$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10771&group=comp.unix.programmer#10771

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!csiph.com!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Off-topic drivel (Was: Response to my recent thread about TIOCSTI)
Date: Fri, 3 Nov 2023 20:23:46 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ui3ksi$31eog$1@news.xmission.com>
References: <uhus3a$2v05f$1@news.xmission.com> <0l91N.279082$8fO.52170@fx15.iad> <20231103103615.615@kylheku.com> <7gb1N.177699$sxoa.49926@fx13.iad>
Injection-Date: Fri, 3 Nov 2023 20:23:46 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3193616"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Fri, 3 Nov 2023 20:23 UTC

In article <7gb1N.177699$sxoa.49926@fx13.iad>,
Scott Lurndal <slp53@pacbell.net> wrote:
>Kaz Kylheku <864-117-4973@kylheku.com> writes:
>>On 2023-11-03, Scott Lurndal <scott@slp53.sl.home> wrote:
>>> The introduction of threads pretty much invalidated the idea of
>>> a global errno, which is why all newly defined POSIX system calls
>>> return the error number directly rather than leveraging the
>>> legacy errno (threaded applications define errno as a thread-local
>>> variable to accomodate the legacy system calls).

I hate having to killfile my own thread.

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Security

Re: Off-topic drivel (Was: Response to my recent thread about TIOCSTI)

<113d09a7-5d72-484b-be9d-1b1d17bffe1dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10772&group=comp.unix.programmer#10772

  copy link   Newsgroups: comp.unix.programmer
X-Received: by 2002:a05:620a:8c05:b0:77a:51cb:2105 with SMTP id qz5-20020a05620a8c0500b0077a51cb2105mr178570qkn.9.1699158251755;
Sat, 04 Nov 2023 21:24:11 -0700 (PDT)
X-Received: by 2002:a9d:4795:0:b0:6b9:cf90:87a6 with SMTP id
b21-20020a9d4795000000b006b9cf9087a6mr7400390otf.1.1699158251534; Sat, 04 Nov
2023 21:24:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.programmer
Date: Sat, 4 Nov 2023 21:24:11 -0700 (PDT)
In-Reply-To: <ui3ksi$31eog$1@news.xmission.com>
Injection-Info: google-groups.googlegroups.com; posting-host=76.247.182.84; posting-account=bzpegQoAAABnTq5JDqg52UTZOtil5p5c
NNTP-Posting-Host: 76.247.182.84
References: <uhus3a$2v05f$1@news.xmission.com> <0l91N.279082$8fO.52170@fx15.iad>
<20231103103615.615@kylheku.com> <7gb1N.177699$sxoa.49926@fx13.iad> <ui3ksi$31eog$1@news.xmission.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <113d09a7-5d72-484b-be9d-1b1d17bffe1dn@googlegroups.com>
Subject: Re: Off-topic drivel (Was: Response to my recent thread about TIOCSTI)
From: guent...@gmail.com (Philip Guenther)
Injection-Date: Sun, 05 Nov 2023 04:24:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2156
 by: Philip Guenther - Sun, 5 Nov 2023 04:24 UTC

On Friday, November 3, 2023 at 1:23:51 PM UTC-7, Kenny McCormack wrote:
> In article <7gb1N.177699$sxoa....@fx13.iad>,
> Scott Lurndal <sl...@pacbell.net> wrote:
> >Kaz Kylheku <864-11...@kylheku.com> writes:
> >>On 2023-11-03, Scott Lurndal <sc...@slp53.sl.home> wrote:
> >>> The introduction of threads pretty much invalidated the idea of
> >>> a global errno, which is why all newly defined POSIX system calls
> >>> return the error number directly rather than leveraging the
> >>> legacy errno (threaded applications define errno as a thread-local
> >>> variable to accomodate the legacy system calls).
> I hate having to killfile my own thread.

So you missed the post where Kaz suggested the process would need to make the target tty its controlling tty? That's unfortunate.

Philip Guenther

Re: Nonsense... (Was: Response to my recent thread about TIOCSTI)

<yvr3N.17407$AqO5.9018@fx11.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10857&group=comp.unix.programmer#10857

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Nonsense... (Was: Response to my recent thread about TIOCSTI)
Newsgroups: comp.unix.programmer
References: <uhus3a$2v05f$1@news.xmission.com> <uhuubl$2v1k0$1@news.xmission.com> <20231101190346.588@kylheku.com> <uijcq4$2alo4$2@dont-email.me> <uikaqq$39orr$1@news.xmission.com> <20231109202133.256@kylheku.com>
Lines: 24
Message-ID: <yvr3N.17407$AqO5.9018@fx11.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 10 Nov 2023 14:55:26 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 10 Nov 2023 14:55:26 GMT
X-Received-Bytes: 1767
 by: Scott Lurndal - Fri, 10 Nov 2023 14:55 UTC

Kaz Kylheku <864-117-4973@kylheku.com> writes:
>On 2023-11-10, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> In article <uijcq4$2alo4$2@dont-email.me>, vallor <vallor@cultnix.org> wrote:
>> ...
>>>This is about as on-topic and useful as he could hope for, including
>>>the code from the OS itself.
>>
>> Nope. Sorry.
>>
>> It is as if I posted "I have a cold (or COVID)" and the response was a
>> detailed description of how viruses (*) exist and develop. Interesting
>> perhaps, but not at all helpful or on-topic.
>
>It's all on-topic for the newsgroup. But of course you mean off-topic in
>your bubble.
>
>That's where it gets curious, because how can the the piece of code that
>actually does the check that you were running into and asking about be
>off topic?
>
>"Not the whole answer" and "off topic" are different concepts.

I've you been paying any attention at all for the last decade,
Kenny has never contributed anything useful other than insults.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor