Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
6b5d03da
Commit
6b5d03da
authored
Feb 08, 2021
by
satmandu
Committed by
GitHub
Feb 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use valid ruby (#5096)
parent
6379377f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
packages/inetutils.rb
packages/inetutils.rb
+10
-7
No files found.
packages/inetutils.rb
View file @
6b5d03da
...
...
@@ -50,23 +50,26 @@ class Inetutils < Package
FileUtils
.
install
"
#{
CREW_DEST_PREFIX
}
/bin/ping"
,
"
#{
CREW_DEST_PREFIX
}
/bin/ping.elf"
,
mode:
0
o755
FileUtils
.
install
"
#{
CREW_DEST_PREFIX
}
/bin/ping6"
,
"
#{
CREW_DEST_PREFIX
}
/bin/ping6.elf"
,
mode:
0
o755
FileUtils
.
install
"
#{
CREW_DEST_PREFIX
}
/bin/traceroute"
,
"
#{
CREW_DEST_PREFIX
}
/bin/traceroute.elf"
,
mode:
0
o755
"
#{
CREW_DEST_PREFIX
}
/bin/ping"
=
<~
EOF
@PING_SH
=
<<~
PING_HEREDOC
#!/bin/bash
sudo -E
#{
CREW_PREFIX
}
/sbin/capsh --caps='cap_net_raw+eip cap_setpcap,cap_setuid,cap_setgid+ep'
\\
--keep=1 --user=nobody --addamb=cap_net_raw --
\\
-c "
#{
CREW_PREFIX
}
/bin/ping.elf
\$
@"
EOF
"
#{
CREW_DEST_PREFIX
}
/bin/ping6"
=
<~
EOF
PING_HEREDOC
IO
.
write
(
"
#{
CREW_DEST_PREFIX
}
/bin/ping"
,
@PING_SH
,
perm:
0
o755
)
@PING6_SH
=
<<~
PING6_HEREDOC
#!/bin/bash
sudo -E
#{
CREW_PREFIX
}
/sbin/capsh --caps='cap_net_raw+eip cap_setpcap,cap_setuid,cap_setgid+ep'
\\
--keep=1 --user=nobody --addamb=cap_net_raw --
\\
-c "
#{
CREW_PREFIX
}
/bin/ping6.elf
\$
@"
EOF
"
#{
CREW_DEST_PREFIX
}
/bin/traceroute"
=
<~
EOF
PING6_HEREDOC
IO
.
write
(
"
#{
CREW_DEST_PREFIX
}
/bin/ping6"
,
@PING6_SH
,
perm:
0
o755
)
@TRACEROUTE_SH
=
<<~
TRACEROUTE_HEREDOC
#!/bin/bash
sudo -E
#{
CREW_PREFIX
}
/sbin/capsh --caps='cap_net_raw+eip cap_setpcap,cap_setuid,cap_setgid+ep'
\\
--keep=1 --user=nobody --addamb=cap_net_raw --
\\
-c "
#{
CREW_PREFIX
}
/bin/traceroute.elf
\$
@"
EOF
TRACEROUTE_HEREDOC
IO
.
write
(
"
#{
CREW_DEST_PREFIX
}
/bin/traceroute"
,
@TRACEROUTE_SH
,
perm:
0
o755
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment