rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Byron Rakitzis <byron>
To: rc
Subject: Re: a tricky question
Date: Thu, 12 Dec 1991 09:58:56 -0600	[thread overview]
Message-ID: <91Dec12.103008cst.18907@archone.tamu.edu> (raw)

I just thought of a hole: importing functions from the environment.
e.g.,

foo:
	#!/bin/rc --
	echo hi

can be foiled with

; fn echo {/bin/sh}
; foo

or even

	#!/bin/rc --
	exec mount /pcfs

can be foiled with

; fn exec {/bin/sh}
; foo

Then again, Duff mentions "-p" in one of the rc papers, so this one
does not get any credit.

Might it be worth adding "-p" to rc, or would it encourage a false
sense of security? I guess that's what I am driving at.


             reply	other threads:[~1991-12-12 16:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-12-12 15:58 Byron Rakitzis [this message]
1991-12-15 22:07 ` Chris Siebenmann
  -- strict thread matches above, loose matches on Subject: below --
1991-12-12 15:54 Byron Rakitzis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91Dec12.103008cst.18907@archone.tamu.edu \
    --to=rc@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).