-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add Fluxbox toolbar removal and Firejail security enhancements #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aafc767
feat: add xrdp system user for service execution in Dockerfile
sanjay7178 f2e2c76
refactor: remove xrdp system user creation from Dockerfile and update…
sanjay7178 1f06f4e
fix: change XRDP user configuration to use root in xrdp.conf
sanjay7178 d5dd980
feat: Add Fluxbox toolbar removal and Firejail security enhancements
sanjay7178 24b9331
Merge branch 'main' into firejailed
sanjay7178 32594dd
Update chromium-secure.profile
surya-d-naidu f13c1d1
Update fluxbox-menu
surya-d-naidu 0bc675a
Update fluxbox-startup
surya-d-naidu 31ec763
Update fluxbox-startup
surya-d-naidu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Firejail profile for Chromium browser - Secure RDP Container | ||
| # This profile provides enhanced security isolation for Chromium | ||
|
|
||
| # Network access (remove 'net none' to allow internet access) | ||
| # net none | ||
|
|
||
| # Filesystem restrictions | ||
| private-tmp | ||
| private-dev | ||
| private-cache | ||
| private-etc passwd,group,hostname,hosts,nsswitch.conf,resolv.conf,xdg,pulse,fonts | ||
| private-opt none | ||
| private-srv none | ||
|
|
||
| # Disable unnecessary features | ||
| nodvd | ||
| nocd | ||
| notv | ||
| nou2f | ||
| novideo | ||
| nosound | ||
|
|
||
| # Security features | ||
| seccomp | ||
| caps.drop all | ||
| noroot | ||
| nogroups | ||
| shell none | ||
| disable-mnt | ||
|
|
||
| # Block access to system directories | ||
| blacklist /boot | ||
| blacklist /media | ||
| blacklist /mnt | ||
| blacklist /opt | ||
| blacklist /srv | ||
| blacklist /sys | ||
|
|
||
| # Allow only necessary directories | ||
| whitelist /tmp/.X11-unix | ||
| whitelist /usr/bin/chromium | ||
| whitelist /usr/lib/chromium | ||
| whitelist /usr/share | ||
| whitelist /etc/fonts | ||
| whitelist /etc/ssl | ||
| whitelist /var/cache/fontconfig | ||
|
|
||
| # Memory restrictions | ||
| rlimit-as 2147483648 # 2GB | ||
| rlimit-cpu 3600 # 1 hour | ||
| rlimit-fsize 1073741824 # 1GB | ||
|
|
||
| # Process restrictions | ||
| rlimit-nofile 1024 | ||
| rlimit-nproc 1000 | ||
|
|
||
| # Additional security | ||
| apparmor | ||
| machine-id |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||||
| # Fluxbox init file - Secure RDP Container Configuration | ||||||||
| # This file configures Fluxbox for a clean, minimal desktop environment | ||||||||
|
|
||||||||
| # Hide the toolbar (status bar/taskbar) | ||||||||
| session.screen0.toolbar.visible: false | ||||||||
|
|
||||||||
| # Additional toolbar settings (in case toolbar is enabled later) | ||||||||
| session.screen0.toolbar.placement: TopCenter | ||||||||
| session.screen0.toolbar.height: 0 | ||||||||
| session.screen0.toolbar.autoHide: true | ||||||||
|
|
||||||||
| # Window placement and behavior | ||||||||
| session.screen0.windowPlacement: RowSmartPlacement | ||||||||
| session.screen0.focusModel: ClickToFocus | ||||||||
| session.screen0.workspaces: 1 | ||||||||
| session.screen0.workspaceNames: Desktop | ||||||||
|
|
||||||||
| # Disable desktop icons and background | ||||||||
|
||||||||
| # Disable desktop icons and background | |
| # Disable desktop icons and background | |
| # Intentionally left blank to disable desktop icons and background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [begin] (Secure RDP Environment) | ||
| [exec] (Chromium) {/usr/bin/chromium --no-sandbox --disable-dev-shm-usage} | ||
| [separator] | ||
| [submenu] (Utilities) | ||
| # Removed File Manager entry as Nautilus is not installed | ||
| [exec] (Text Editor) {/usr/bin/nano} | ||
| [end] | ||
| [separator] | ||
| [submenu] (System) | ||
| [exec] (Refresh Desktop) {/usr/bin/xrefresh} | ||
| [restart] (Restart Fluxbox) | ||
| [end] | ||
| [separator] | ||
| [exit] (Exit) | ||
| [end] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/bin/sh | ||
| # Fluxbox startup script to ensure clean desktop environment | ||
|
|
||
| # Start fluxbox in background | ||
| fluxbox & | ||
| FLUXBOX_PID=$! | ||
|
|
||
| # Wait for fluxbox to fully initialize | ||
| sleep 3 | ||
|
|
||
| # Hide toolbar by directly editing the init file | ||
| sleep 1 | ||
|
|
||
| # Alternative method: directly edit the init file to disable toolbar | ||
| grep -q "^session.screen0.toolbar.visible: false" ~/.fluxbox/init || echo "session.screen0.toolbar.visible: false" >> ~/.fluxbox/init | ||
| grep -q "^session.screen0.toolbar.autoHide: true" ~/.fluxbox/init || echo "session.screen0.toolbar.autoHide: true" >> ~/.fluxbox/init | ||
|
|
||
| # Restart fluxbox to apply changes | ||
| fluxbox-remote "Restart" 2>/dev/null || true | ||
|
|
||
| # Wait for fluxbox to stay running | ||
| wait $FLUXBOX_PID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| Section "Module" | ||
| Load "dbe" | ||
| Load "glx" | ||
| Load "xorgxrdp" | ||
| Load "fb" | ||
| EndSection | ||
|
|
||
| Section "Device" | ||
| Identifier "Xorg" | ||
| Driver "xorgxrdp" | ||
| EndSection | ||
|
|
||
| Section "InputDevice" | ||
| Identifier "xrdpMouse" | ||
| Driver "xrdpMouse" | ||
| EndSection | ||
|
|
||
| Section "InputDevice" | ||
| Identifier "xrdpKeyboard" | ||
| Driver "xrdpKeyboard" | ||
| EndSection | ||
|
|
||
| Section "Screen" | ||
| Identifier "screen1" | ||
| Device "Xorg" | ||
| EndSection | ||
|
|
||
| Section "ServerLayout" | ||
| Identifier "Primary Layout" | ||
| Screen "screen1" | ||
| InputDevice "xrdpKeyboard" "CoreKeyboard" | ||
| InputDevice "xrdpMouse" "CorePointer" | ||
| EndSection |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .xsession script uses ${STARTING_WEBSITE_URL}, but elsewhere supervisor uses ENV_STARTING_WEBSITE_URL. Align the environment variable names or document the mapping to ensure the URL is passed correctly.