Skip to content

Commit c458079

Browse files
committed
Add a crosh command for convenience
1 parent 2250401 commit c458079

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

autostart/crew-sudo.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# crew-sudo.conf: Upstart init configuration file for crew-sudo
22
description "The crew-sudo daemon"
3-
author "The Chromebrew authors"
3+
author "The Chromebrew Authors"
44

55
# autostart crew-sudo on early boot
66
start on started boot-services

crosh/50-crew-sudo.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/dash
2+
# 50-crew-sudo.sh: Add a crosh command called "normalshell" which
3+
# opens a shell without landlock/"no new privileges" restrictions
4+
5+
USAGE_normalshell=''
6+
7+
HELP_normalshell='
8+
Open a command line shell without landlock/"no new privileges" restrictions.
9+
'
10+
11+
cmd_normalshell() (
12+
exec crew-sudo --client /bin/bash -l
13+
)

0 commit comments

Comments
 (0)