Chapter 10. Displaying system security classification
As an administrator of deployments where the user must be aware of the security classification of the system, you can set up a notification of the security classification. This can be either a permanent banner or a temporary notification, and it can appear on the login screen, in the GNOME session, or on the lock screen.
10.1. Enabling system security classification banners
You can create a permanent classification banner to state the overall security classification level of the system. This is useful for deployments where the user must always be aware of the security classification level of the system that they are logged into.
The permanent classification banner can appear within the running session, the lock screen, and login screen, and you can customize its background color, its font, and its position within the screen.
Procedure
Install the
gnome-shell-extension-classification-banner
package:dnf install gnome-shell-extension-classification-banner
# dnf install gnome-shell-extension-classification-banner
Copy to Clipboard Copied! Create the
99-class-banner
file at either of the following locations:-
To configure a notification at the login screen, create
/etc/dconf/db/gdm.d/99-class-banner
. -
To configure a notification in the user session, create
/etc/dconf/db/local.d/99-class-banner
.
-
To configure a notification at the login screen, create
Enter the following configuration in the created file:
[org/gnome/shell] enabled-extensions=['classification-banner@gnome-shell-extensions.gcampax.github.com'] [org/gnome/shell/extensions/classification-banner] background-color='<rgba(value, value, value, value)>' message='<your_message>' top-banner=<true_or_false> bottom-banner=<true_or_false> system-info=<true_or_false> color='<rgb(value, value, value)>'
[org/gnome/shell] enabled-extensions=['classification-banner@gnome-shell-extensions.gcampax.github.com'] [org/gnome/shell/extensions/classification-banner] background-color='<rgba(value, value, value, value)>' message='<your_message>' top-banner=<true_or_false> bottom-banner=<true_or_false> system-info=<true_or_false> color='<rgb(value, value, value)>'
Copy to Clipboard Copied! To enable multiple extensions, specify all of them in the
enabled-extensions
list. For example:enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com', 'classification-banner@gnome-shell-extensions.gcampax.github.com']
enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com', 'classification-banner@gnome-shell-extensions.gcampax.github.com']
Copy to Clipboard Copied! Update the
dconf
database:dconf update
# dconf update
Copy to Clipboard Copied! - Reboot the system.
Troubleshooting
- If the classification banners are not displayed for an existing user, log in as the user and enable the Classification banner extension by using the Extensions application.
10.2. Notifying of the system security classification
You can set up a notification that contains a predefined message in an overlay banner. This is useful for deployments where the user is required to read the security classification of the system before logging in.
Depending on your configuration, the notification can appear at the login screen, after logging in, on the lock screen, or after a longer time with no user activity. You can always clear the notification when it is displayed.
Procedure
Install the
gnome-shell-extension-heads-up-display
package:dnf install gnome-shell-extension-heads-up-display
# dnf install gnome-shell-extension-heads-up-display
Copy to Clipboard Copied! Create the
99-hud-message
file at either of the following locations:-
To configure a notification at the login screen, create
/etc/dconf/db/gdm.d/99-hud-message
. -
To configure a notification in the user session, create
/etc/dconf/db/local.d/99-hud-message
.
-
To configure a notification at the login screen, create
Enter the following configuration in the created file:
[org/gnome/shell] enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com'] [org/gnome/shell/extensions/heads-up-display] message-heading="<security_classification_title>" message-body="<security_classification_description>" # The following options control when the notification appears: show-when-locked=true show-when-unlocking=true show-when-unlocked=true
[org/gnome/shell] enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com'] [org/gnome/shell/extensions/heads-up-display] message-heading="<security_classification_title>" message-body="<security_classification_description>" # The following options control when the notification appears: show-when-locked=true show-when-unlocking=true show-when-unlocked=true
Copy to Clipboard Copied! Replace the following values with text that describes the security classification of your system:
- Security classification title
- A short heading that identifies the security classification.
- Security classification description
- A longer message that provides additional details, such as references to various guidelines.
WarningThis configuration overrides similar configuration files that also enable an extension, such as Enabling system security classification banners.
To enable multiple extensions, specify all of them in the enabled-extensions
list. For example:
enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com', 'classification-banner@gnome-shell-extensions.gcampax.github.com']
enabled-extensions=['heads-up-display@gnome-shell-extensions.gcampax.github.com', 'classification-banner@gnome-shell-extensions.gcampax.github.com']
Update the
dconf
database:dconf update
# dconf update
Copy to Clipboard Copied! - Reboot the system.
Troubleshooting
- If the notifications are not displayed for an existing user, log in as the user and enable the Heads-up display message extension using the Extensions application.