1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 15:04:13 +00:00
cde/src/cmd/ksh93/tests
Martijn Dekker 2e5b625915 Allow path-bound builtins on restricted shells
If a system administrator prefixes /opt/ast/bin to the path and
then invokes the shell in restricted mode, they clearly intend for
the user to run those AST utilities.

Similarly, if a system administrator sets a PATH for a restricted
shell that includes libraries listed in the .paths file, they must
have intended for the user to use those loadable built-ins, as they
will be associated with the pathnames of their respective
libraries. Since the user cannot change PATH or use the builtin
command, they still cannot load just any built-in they choose.

src/cmd/ksh93/sh/path.c:
- Remove SH_RESTRICTED check when handling path-bound builtins
  or dynamic libaries containining builtins in $PATH.

src/cmd/ksh93/tests/builtins.sh:
- Add test verifying a restricted user can use /opt/ast/bin/cat
  via a PATH search.

Progresses: https://github.com/ksh93/ksh/issues/138
2021-04-08 14:48:29 +01:00
..
_common Fix a few regression test failures (#222) 2021-03-14 21:32:04 +00:00
alias.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
append.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
arith.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
arrays.sh Fix unsetting array element after expanding array subscript range 2021-04-05 22:16:57 +01:00
arrays2.sh tests/array2.sh: fix broken tests 2021-03-30 15:38:29 +01:00
attributes.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
basic.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
bracket.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
builtins.sh Allow path-bound builtins on restricted shells 2021-04-08 14:48:29 +01:00
case.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
comvar.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
comvario.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
coprocess.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
cubetype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
enum.sh Backport bugfixes for arrays of 'enum' types from ksh 93v- beta 2021-04-06 06:33:32 +01:00
exit.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
expand.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
functions.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
glob.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
grep.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
heredoc.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
io.sh Backport bugfix for BUG_CSUBSTDO from ksh93v- 2012-08-24 (#259) 2021-04-08 13:24:17 +01:00
jobs.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
leaks.sh Properly fix $LINENO crash on ARM (re: 23b7a163) and other bugs 2021-04-08 00:56:09 +01:00
locale.sh Properly fix $LINENO crash on ARM (re: 23b7a163) and other bugs 2021-04-08 00:56:09 +01:00
math.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
nameref.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
namespace.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
options.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
path.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
pointtype.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
pty.sh tests/pty.sh: try to fix another intermittent GitHub CI fail 2021-04-05 07:42:12 +01:00
quoting.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
quoting2.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
readcsv.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
readonly.sh Make readonly variables exportable again (re: 264ba48b) 2021-04-08 06:40:25 +01:00
recttype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
restricted.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
return.sh Save $? when discipline triggered without command (#226) 2021-03-16 16:13:13 +00:00
select.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
shtests shtests: make aliases work again for shcomp tests (re: aed5c6d7) 2021-03-23 03:49:32 +00:00
sigchld.sh tests/sigchld.sh: try to fix intermittent CI fail (re: 712261c8) 2021-03-25 02:47:17 +00:00
signal.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
statics.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
subshell.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
substring.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
tilde.sh Allow proper tilde expansion overrides (#225) 2021-03-17 21:07:14 +00:00
timetype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
treemove.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
types.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
variables.sh Add LC_TIME to the supported locale variables (#257) 2021-04-08 13:06:22 +01:00
vartree1.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
vartree2.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00