Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
b11e1f0e
Unverified
Commit
b11e1f0e
authored
5 years ago
by
Alexey Minnekhanov
Browse files
Options
Downloads
Patches
Plain Diff
main/postmarketos-mkinitfs-hook-debug-shell: mount pstore (
!921
)
parent
685e7e2b
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#196680
passed
5 years ago
Stage: first
Stage: second
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/postmarketos-mkinitfs-hook-debug-shell/20-debug-shell.sh
+5
-0
5 additions, 0 deletions
.../postmarketos-mkinitfs-hook-debug-shell/20-debug-shell.sh
main/postmarketos-mkinitfs-hook-debug-shell/APKBUILD
+2
-2
2 additions, 2 deletions
main/postmarketos-mkinitfs-hook-debug-shell/APKBUILD
with
7 additions
and
2 deletions
main/postmarketos-mkinitfs-hook-debug-shell/20-debug-shell.sh
+
5
−
0
View file @
b11e1f0e
...
...
@@ -42,6 +42,11 @@ echo "Start the telnet daemon"
chmod
+x /telnet_connect.sh
telnetd
-b
"
${
IP
}
:
${
TELNET_PORT
}
"
-l
/telnet_connect.sh
# mount pstore, if possible
if
[
-d
/sys/fs/pstore
]
;
then
mount
-t
pstore pstore /sys/fs/pstore
||
true
fi
echo
"---"
echo
"WARNING: debug-shell is active on
${
IP
}
:
${
TELNET_PORT
}
."
echo
"This is a security hole! Only use it for debugging, and"
...
...
This diff is collapsed.
Click to expand it.
main/postmarketos-mkinitfs-hook-debug-shell/APKBUILD
+
2
−
2
View file @
b11e1f0e
pkgname
=
postmarketos-mkinitfs-hook-debug-shell
pkgver
=
0.1.1
pkgrel
=
4
pkgrel
=
5
pkgdesc
=
"Root shell in the initramfs (security hole, for debugging only)"
url
=
"https://postmarketos.org"
depends
=
"postmarketos-mkinitfs fbdebug evtest linuxconsoletools reboot-mode"
...
...
@@ -17,5 +17,5 @@ package() {
"
$pkgdir
"
/etc/postmarketos-mkinitfs/files/20-debug-shell.files
}
sha512sums
=
"
06e684f0b2ce4766fe7890e0a545ca7e6bc1a03255d2cdf3dd7db6cfda01bf56a21042ac371b54bfe08379ed8c3eebd34a6efa4405595588d2734db0b011e761
20-debug-shell.sh
sha512sums
=
"
8de9bd415adc9ac09763e34bef1ac869105cf42377a233c2fad021b64b3a0a68883feddd056491ef3ce4a1cc892344337aea0898af3834c1396302aed128f782
20-debug-shell.sh
3274b01850dabe927bc3749f2b4b86eab02adc6954504352401e596e29e044aec512ccead68b471a8009aa8658fe698ffdc67e03c3ca55b7dd54d35c72ac620f 20-debug-shell.files"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment