Author SHA1 Message Date
Leon Grünewald 271b4f8898 Add more files for labels 2021-02-14 14:59:59 +01:00
Leon Grünewald 552d533435 Try to fix path 2021-02-14 14:39:48 +01:00
Leon Grünewald 9d774d93c5 Add name to install 2021-02-14 14:10:04 +01:00
Leon Grünewald 90f18e9b34 We can't relabel nonexistant files anyway 2021-02-14 13:51:04 +01:00
Leon Grünewald ccb9dfabc5 Move package somewhere else for install 2021-02-14 13:48:51 +01:00
Leon Grünewald 4ba42400ce Use install instead of cp 1 2021-02-11 22:50:10 +01:00
Leon Grünewald b336b70605 Remove versioning on git clone 2021-02-10 01:52:38 +01:00
Leon Grünewald 9c70ff5576 Add selinux policy tools to needed packages 2021-02-10 01:47:30 +01:00
Leon Grünewald ec230541f3 Use make selinux macros 2021-02-10 01:46:15 +01:00
Leon Grünewald d2fcb2e87d Rename target 2021-02-10 01:37:52 +01:00
Leon Grünewald 96a556a345 Move the pp file into the right folder 2021-02-10 01:32:09 +01:00
Leon Grünewald f79330cda3 Add installselinux to spec.rpkg 2021-02-10 01:23:03 +01:00
Leon Grünewald 3deedba040 WIP SELinux 2021-02-10 01:21:16 +01:00
Leon Grünewald dfe918358e Add gcc 2021-02-08 03:51:05 +01:00
Leon Grünewald cd738eafa7 Actually push git before trying to build 2021-02-08 03:46:08 +01:00
Leon Grünewald 289624bc88 Test src stuff 2021-02-08 03:35:45 +01:00
Leon Grünewald 7d4b25fc70 Dont remove spec file 2021-02-08 03:25:55 +01:00
Leon Grünewald b8b31386e1 move to rpkg again but this time remove setup 2021-02-08 03:06:01 +01:00
Leon Grünewald a14e6b5224 Just copy everything from github at that point 2021-02-08 02:54:25 +01:00
Leon Grünewald 16922531e2 cd to spec first 2021-02-08 02:34:24 +01:00
Leon Grünewald 5c04c996d5 This makes some more sense now 2021-02-08 02:19:24 +01:00
Leon Grünewald a7dedbab1b Just the rpmbuild 2021-02-08 01:52:05 +01:00
Leon Grünewald 1926901eda Fix it up 2021-02-08 01:47:01 +01:00
Leon Grünewald 43a40faf79 Build Requires make 2021-02-08 00:58:17 +01:00
Leon Grünewald 974aca51cb Turn into ly.spec.rpkg 2021-02-08 00:33:35 +01:00
Leon Grünewald 6ac03ab27e Add basic spec file and selinux module source 2021-02-08 00:13:19 +01:00
nullgemm 77f6958241 update readme 2020-07-30 20:16:36 +02:00
nullgemm 1523d0858d update submodules 2020-07-28 17:35:08 +02:00
nullgemm f6658f83a9 update 2020-07-27 20:37:58 +02:00
tyusha0 52d24304f8 Add Russian translation (#197)
Add Russian translation.
2020-07-27 18:10:48 +02:00
Deven Blake ab531c9b2d Add more details to the Debian dependencies (#210)
* Provide more specific instructions for Debian-based distros

* clarify that you should run command as root
2020-07-27 18:08:15 +02:00
nullgemm 86bd5bc1f6 fix title depth 2020-04-05 12:20:23 +02:00
nullgemm 7e7b2adf05 one simply does not rtfm 2020-04-05 12:19:30 +02:00
nullgemm 8493c5a8ad use custom pam service name 2020-04-05 11:51:41 +02:00
nullgemm 4a7c82e3e3 add /usr/sbin to default path 2020-04-05 11:37:42 +02:00
Egor Duplensky 0a0da30ac9 Set correct permissions (644) for systemd service file (#179) 2020-04-05 11:32:59 +02:00
nullgemm c0328b3677 reformat romanian translation 2020-04-05 11:28:40 +02:00
Mihai Morariu 29e3ac28dd Add Romanian translation. (#177) 2020-04-05 11:16:46 +02:00
Érico Nogueira Rolim ce74c762ee Add Portuguese translation. (#180) 2020-04-05 11:14:25 +02:00
nullgemm afb6e964dd fix config entry not reflecting default setting 2020-02-03 17:49:06 +01:00
nullgemm ce785ed0dc add ctrl-u input clearing 2020-02-03 08:51:05 +01:00
nullgemm 915ebd442f clear password instead of free 2020-02-03 08:39:15 +01:00
nullgemm 825544f7e2 fix password not being cleared when blank_password is set 2020-02-03 08:34:42 +01:00
Érico Nogueira Rolim 33934f3ab2 add wayland specifier to session names (#162)
Create a config option to force ly to add " (Wayland)" to session
names, as long as those names don't already contain the string.
2020-02-03 07:20:47 +01:00
nullgemm 4882cd4548 fix wayland sessions 2020-02-01 20:16:26 +01:00
nullgemm 36b7ab0d4d remove developement comment (#140) 2020-02-01 19:26:06 +01:00
nullgemm 9eb212cb91 put xauthority file in XDG_CONFIG if specified 2020-02-01 19:01:51 +01:00
Érico Nogueira Rolim fa42781cb9 Make the project compilable with clang. (#163)
Clang generates more warning messages, such as pointing out a lack
of newline at end of file and issues with the size of a strncopy.

Moving -Wno-unused-parameter to the end of the flags avoids it being
overwritten by -Wextra.

Removing -Werror avoids compilation errors that may arise from new
compiler warnings that might come from newer versions of compilers.
2020-02-01 18:23:25 +01:00
Deven Blake 740e7393bb Adding desktops that are tested (#168)
@RandomGuyDTB tested the latest versions of MaXX Interactive Desktop and GNU WindowMaker
2020-02-01 18:16:23 +01:00
mozartilize ccf7911e9f fix hidden cursor after logout (#172) 2020-02-01 18:14:13 +01:00
Iván faff4d21f0 fix typo in spanish translation (#159) 2019-12-16 15:03:55 +01:00
nullgemm 3d2ec52290 document libpam0g-dev dependency for debian-based distros (#101) 2019-12-14 12:30:02 +01:00
nullgemm 4a1adf92b5 add install without conf target 2019-12-14 12:23:43 +01:00
Iván 7904b07e14 Translate Ly to Spanish (#150)
Pending to test.
2019-12-14 12:16:45 +01:00
nullgemm c83ef00099 fix language loading 2019-12-14 12:12:50 +01:00
Stuart Reilly 37fc47ef7a Remove /usr/bin/env from default path (#158) 2019-12-14 11:58:30 +01:00
Mateusz Piotrowski 4d0549d53a Mention that GNU make is required (#139)
The current makefile is not compatible with bmake,
which is the default make on FreeBSD.
2019-12-14 11:50:17 +01:00
Stanislav Láznička a99c18b7fa Fix building by explicitly casting const out in config.c (#155) 2019-12-06 16:15:08 +01:00
Stanislav Láznička ecaea4131b Implement utmp audit (#133)
Implements utmp audit required by policykit.

This commit also flattens the pidtree for the DM by starting the
display environment directly in the first fork which already should
have the environment ready for this purpose. This is with the
exception of xorg environments where this can't be done that easily.
2019-12-06 16:10:27 +01:00
Roosemberth Palacios 31e1ba84af Alloc passing the path to the configuration file as an argument (#134)
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-31 13:54:45 +01:00
Roosemberth Palacios f650e82f93 login.c: Do not overwrite the PATH variable if config.path element is empty (#135)
This allows disabling the feature if PATH was already set (e.g. by the systemd session
slice) and the user wishes to honor that.

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-31 00:03:35 +01:00
Roosemberth Palacios fe4af2bfe6 Makefile: Add config option to allow specifying a separate data directory (#136)
This allows the user to specify a different directory to store static files, such as
translations and other resources.

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-27 16:49:55 +01:00
Stanislav Láznička 9486f05e59 cosmetic changes + enter behavior (#126)
* remove trailing whitespace

* always submit password on enter

Moves the keypress logic for keypresses from if-else statements
to switches, adds non-contextual behavior on pressing enter

* wrap pam actions and handle errors at on spot

* init all of text struct in input_text()

This gets rid off valgrind warning on unitialized variables
2019-10-04 20:50:02 +02:00
Stanislav Láznička 95c0077416 print hostname in info lane on start (#127)
hostname was set in the info_line and unset right after that
2019-10-04 20:41:56 +02:00
nullgemm 6388208bb1 fix remotes dependant submodules 2019-09-22 16:57:03 +02:00
nullgemm ce07938ccf set LANG 2019-09-21 18:34:03 +02:00
nullgemm 3c20d7d47c fix animation bug 2019-09-21 18:00:16 +02:00
nullgemm 7457ceaa56 add remotes tool 2019-09-21 17:46:45 +02:00
nullgemm 500951fa34 update xsetup #111 2019-08-24 14:06:00 +02:00
nullgemm bce0a161af remove unused include 2019-06-26 23:11:33 +02:00
nullgemm e5cb2b4cf8 update submodules 2019-06-26 22:51:42 +02:00
nullgemm efc5c49de5 initial commit 2019-06-10 16:05:54 +02:00
nullgemm 303a80dae8 add submodules 2019-06-10 16:05:36 +02:00
20 changed files with 348 additions and 30 deletions

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
srpm:
cd $(spec)
make github
rpmbuild -vv -bs ly.spec --define "_srcrpmdir $(outdir)"
+5 -5
View File
@@ -1,15 +1,15 @@
[submodule "sub/argoat"] [submodule "sub/argoat"]
path = sub/argoat path = sub/argoat
url = https://git.cylgom.net/cylgom/argoat.git url = https://git.nullgemm.fr/nullgemm/argoat.git
[submodule "sub/configator"] [submodule "sub/configator"]
path = sub/configator path = sub/configator
url = https://git.cylgom.net/cylgom/configator.git url = https://git.nullgemm.fr/nullgemm/configator.git
[submodule "sub/ctypes"] [submodule "sub/ctypes"]
path = sub/ctypes path = sub/ctypes
url = https://git.cylgom.net/cylgom/ctypes.git url = https://git.nullgemm.fr/nullgemm/ctypes.git
[submodule "sub/dragonfail"] [submodule "sub/dragonfail"]
path = sub/dragonfail path = sub/dragonfail
url = https://git.cylgom.net/cylgom/dragonfail.git url = https://git.nullgemm.fr/nullgemm/dragonfail.git
[submodule "sub/termbox_next"] [submodule "sub/termbox_next"]
path = sub/termbox_next path = sub/termbox_next
url = https://git.cylgom.net/cylgom/termbox_next.git url = https://git.nullgemm.fr/nullgemm/termbox_next.git
+5 -5
View File
@@ -1,15 +1,15 @@
[submodule "sub/argoat"] [submodule "sub/argoat"]
path = sub/argoat path = sub/argoat
url = https://github.com/cylgom/argoat.git url = https://github.com/nullgemm/argoat.git
[submodule "sub/configator"] [submodule "sub/configator"]
path = sub/configator path = sub/configator
url = https://github.com/cylgom/configator.git url = https://github.com/nullgemm/configator.git
[submodule "sub/ctypes"] [submodule "sub/ctypes"]
path = sub/ctypes path = sub/ctypes
url = https://github.com/cylgom/ctypes.git url = https://github.com/nullgemm/ctypes.git
[submodule "sub/dragonfail"] [submodule "sub/dragonfail"]
path = sub/dragonfail path = sub/dragonfail
url = https://github.com/cylgom/dragonfail.git url = https://github.com/nullgemm/dragonfail.git
[submodule "sub/termbox_next"] [submodule "sub/termbox_next"]
path = sub/termbox_next path = sub/termbox_next
url = https://github.com/cylgom/termbox_next.git url = https://github.com/nullgemm/termbox_next.git
+78
View File
@@ -0,0 +1,78 @@
%define relabel_files() \
restorecon -R /usr/bin/ly; \
%define selinux_policyver 3.14.6-34
Name: {{{ git_dir_name }}}
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: A TUI display manager
License: WTFPL
URL: https://github.com/nullgemm/ly
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
BuildRequires: libxcb-devel
BuildRequires: pam-devel
BuildRequires: make
BuildRequires: git
BuildRequires: gcc
BuildRequires: selinux-policy-devel
Requires: libxcb
Requires: pam
%description
Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD.
%prep
git clone https://github.com/dhalucario/ly.git ly
cd ly
# git checkout v0.5.2
make github
%build
cd ly
make
%install
cd ly
mkdir -p %{buildroot}/etc/
mkdir -p %{buildroot}/usr/bin/
mkdir -p %{buildroot}/usr/lib/systemd/system/
mkdir -p %{buildroot}/etc/pam.d/
DESTDIR="%{buildroot}" make install
DESTDIR="%{buildroot}" make installselinux
chmod -x %{buildroot}/etc/ly/config.ini
chmod -x %{buildroot}/etc/ly/lang/*
%post
semodule -n -i /usr/share/selinux/packages/ly.pp
if /usr/sbin/selinuxenabled ; then
/usr/sbin/load_policy
%relabel_files
fi;
exit 0
%postun
if [ $1 -eq 0 ]; then
semodule -n -r ly
fi;
exit 0
%files
/usr/bin/ly
/usr/lib/systemd/system/ly.service
/etc/ly/lang/es.ini
/etc/ly/lang/pt.ini
/etc/ly/lang/ru.ini
/etc/ly/lang/en.ini
/etc/ly/lang/fr.ini
/etc/ly/lang/ro.ini
/etc/ly/xsetup.sh
/etc/ly/wsetup.sh
/etc/ly/config.ini
/etc/pam.d/ly
/usr/share/selinux/packages/ly.pp
%changelog
{{{ git_dir_changelog }}}
+13 -5
View File
@@ -78,7 +78,8 @@ install: $(BIND)/$(NAME)
@install -DZ $(RESD)/wsetup.sh -t $(DATADIR) @install -DZ $(RESD)/wsetup.sh -t $(DATADIR)
@install -dZ $(DATADIR)/lang @install -dZ $(DATADIR)/lang
@install -DZ $(RESD)/lang/* -t $(DATADIR)/lang @install -DZ $(RESD)/lang/* -t $(DATADIR)/lang
@install -DZ $(RESD)/ly.service -t ${DESTDIR}/usr/lib/systemd/system @install -DZ $(RESD)/ly.service -m 644 -t ${DESTDIR}/usr/lib/systemd/system
@install -DZ $(RESD)/pam.d/ly -m 644 -t ${DESTDIR}/etc/pam.d
installnoconf: $(BIND)/$(NAME) installnoconf: $(BIND)/$(NAME)
@echo "installing without the configuration file" @echo "installing without the configuration file"
@@ -88,7 +89,13 @@ installnoconf: $(BIND)/$(NAME)
@install -DZ $(RESD)/wsetup.sh -t $(DATADIR) @install -DZ $(RESD)/wsetup.sh -t $(DATADIR)
@install -dZ $(DATADIR)/lang @install -dZ $(DATADIR)/lang
@install -DZ $(RESD)/lang/* -t $(DATADIR)/lang @install -DZ $(RESD)/lang/* -t $(DATADIR)/lang
@install -DZ $(RESD)/ly.service -t ${DESTDIR}/usr/lib/systemd/system @install -DZ $(RESD)/ly.service -m 644 -t ${DESTDIR}/usr/lib/systemd/system
@install -DZ $(RESD)/pam.d/ly -m 644 -t ${DESTDIR}/etc/pam.d
installselinux:
@echo "installing selinux modules"
@make -f /usr/share/selinux/devel/Makefile ly.pp
@install -DZ ly.pp ${DESTDIR}/usr/share/selinux/packages/ly.pp
uninstall: uninstall:
@echo "uninstalling" @echo "uninstalling"
@@ -96,6 +103,7 @@ uninstall:
@rm -rf $(DATADIR) @rm -rf $(DATADIR)
@rm -f ${DESTDIR}/usr/bin/ly @rm -f ${DESTDIR}/usr/bin/ly
@rm -f ${DESTDIR}/usr/lib/systemd/system/ly.service @rm -f ${DESTDIR}/usr/lib/systemd/system/ly.service
@rm -f ${DESTDIR}/etc/pam.d/ly
clean: clean:
@echo "cleaning" @echo "cleaning"
@@ -104,8 +112,8 @@ clean:
remotes: remotes:
@echo "registering remotes" @echo "registering remotes"
@git remote add github git@github.com:cylgom/$(NAME).git @git remote add github git@github.com:nullgemm/$(NAME).git
@git remote add gitea ssh://git@git.cylgom.net:2999/cylgom/$(NAME).git @git remote add gitea ssh://git@git.nullgem.fr:2999/nullgemm/$(NAME).git
github: github:
@echo "sourcing submodules from https://github.com" @echo "sourcing submodules from https://github.com"
@@ -116,7 +124,7 @@ github:
@git submodule update --init --recursive --remote @git submodule update --init --recursive --remote
gitea: gitea:
@echo "sourcing submodules from https://git.cylgom.net" @echo "sourcing submodules from personal server"
@cp .gitea .gitmodules @cp .gitea .gitmodules
@git submodule sync @git submodule sync
@git submodule update --init --remote @git submodule update --init --remote
+16 -5
View File
@@ -1,6 +1,5 @@
# Ly - a TUI display manager # Ly - a TUI display manager
[![CodeFactor](https://www.codefactor.io/repository/github/cylgom/ly/badge/master)](https://www.codefactor.io/repository/github/cylgom/ly/overview/master) ![Ly screenshot](https://user-images.githubusercontent.com/5473047/88958888-65efbf80-d2a1-11ea-8ae5-3f263bce9cce.png "Ly screenshot")
![Ly screenshot](https://user-images.githubusercontent.com/5473047/42466218-8cb53d3c-83ae-11e8-8e53-bae3669f959c.png "Ly screenshot")
Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD. Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD.
@@ -16,8 +15,7 @@ Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD.
- tput - tput
- shutdown - shutdown
### Debian-based distros On Debian-based distros running `apt install build-essential libpam0g-dev libxcb-xkb-dev` as root should install all the dependencies for you.
- libpam0g-dev
## Support ## Support
The following desktop environments were tested with success The following desktop environments were tested with success
@@ -49,7 +47,7 @@ changing the source code won't be necessary :)
## Cloning and Compiling ## Cloning and Compiling
Clone the repository Clone the repository
``` ```
git clone https://github.com/cylgom/ly.git git clone https://github.com/nullgemm/ly.git
``` ```
Fetch submodules Fetch submodules
@@ -93,6 +91,19 @@ Use the up and down arrow keys to change the current field, and the
left and right arrow keys to change the target desktop environment left and right arrow keys to change the target desktop environment
while on the desktop field (above the login field). while on the desktop field (above the login field).
## .xinitrc
If your .xinitrc doesn't work make sure it is executable and includes a shebang.
This file is supposed to be a shell script! Quoting from xinit's man page:
```
If no specific client program is given on the command line, xinit will look for
a file in the user's home directory called .xinitrc to run as a shell script to
start up client programs.
```
On ArchLinux, the example .xinitrc (/etc/X11/xinit/xinitrc) starts like this:
```
#!/bin/sh
```
## Tips ## Tips
The numlock and capslock state is printed in the top-right corner. The numlock and capslock state is printed in the top-right corner.
Use the F1 and F2 keys to respectively shutdown and reboot. Use the F1 and F2 keys to respectively shutdown and reboot.
+5 -3
View File
@@ -16,6 +16,7 @@
#blank_box = true #blank_box = true
# erase password input on failure # erase password input on failure
#blank_password = false
#blank_password = true #blank_password = true
# console path # console path
@@ -57,7 +58,7 @@
#min_refresh_delta = 5 #min_refresh_delta = 5
# default path # default path
#path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin #path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin
# command executed when pressing F2 # command executed when pressing F2
#restart_cmd = /sbin/shutdown -r now #restart_cmd = /sbin/shutdown -r now
@@ -68,8 +69,8 @@
# file in which to save and load the default desktop and login # file in which to save and load the default desktop and login
#save_file = /etc/ly/save #save_file = /etc/ly/save
# service name (pam needs this set to login) # service name (set to ly to use the provided pam config file)
#service_name = login #service_name = ly
# command executed when pressing F1 # command executed when pressing F1
#shutdown_cmd = /sbin/shutdown -a now #shutdown_cmd = /sbin/shutdown -a now
@@ -85,6 +86,7 @@
# add wayland specifier to session names # add wayland specifier to session names
#wayland_specifier = false #wayland_specifier = false
#wayland_specifier = true
# wayland desktop environments # wayland desktop environments
#waylandsessions = /usr/share/wayland-sessions #waylandsessions = /usr/share/wayland-sessions
+45
View File
@@ -0,0 +1,45 @@
capslock = caixa alta
err_alloc = alocação de memória malsucedida
err_bounds = índice fora de limites
err_chdir = não foi possível abrir o diretório home
err_console_dev = não foi possível acessar o console
err_dgn_oob = mensagem de log
err_domain = domínio inválido
err_hostname = não foi possível obter o nome do host
err_mlock = bloqueio da memória de senha malsucedido
err_null = ponteiro nulo
err_pam = transação pam malsucedida
err_pam_abort = transação pam abortada
err_pam_acct_expired = conta expirada
err_pam_auth = erro de autenticação
err_pam_authinfo_unavail = não foi possível obter informações do usuário
err_pam_authok_reqd = token expirada
err_pam_buf = erro de buffer de memória
err_pam_cred_err = erro para definir credenciais
err_pam_cred_expired = credenciais expiradas
err_pam_cred_insufficient = credenciais insuficientes
err_pam_cred_unavail = não foi possível obter credenciais
err_pam_maxtries = limite máximo de tentativas atingido
err_pam_perm_denied = permissão negada
err_pam_session = erro de sessão
err_pam_sys = erro de sistema
err_pam_user_unknown = usuário desconhecido
err_path = não foi possível definir o caminho
err_perm_dir = não foi possível alterar o diretório atual
err_perm_group = não foi possível reduzir as permissões de grupo
err_perm_user = não foi possível reduzir as permissões de usuário
err_pwnam = não foi possível obter informações do usuário
err_user_gid = não foi possível definir o GID do usuário
err_user_init = não foi possível iniciar o usuário
err_user_uid = não foi possível definir o UID do usuário
err_xsessions_dir = não foi possível encontrar a pasta das sessões
err_xsessions_open = não foi possível abrir a pasta das sessões
f1 = F1 desligar
f2 = F2 reiniciar
login = conectar:
logout = desconectado
numlock = numlock
password = senha:
shell = shell
wayland = wayland
xinitrc = xinitrc
+45
View File
@@ -0,0 +1,45 @@
capslock = capslock
err_console_dev = nu s-a putut accesa consola
err_pam_abort = tranzacţie pam anulată
err_pam_acct_expired = cont expirat
err_pam_auth = eroare de autentificare
err_pam_authinfo_unavail = nu s-au putut obţine informaţii despre utilizator
err_pam_authok_reqd = token expirat
err_pam_buf = eroare de memorie (buffer)
err_pam_cred_err = nu s-au putut seta date de identificare (credentials)
err_pam_cred_expired = datele de identificare (credentials) au expirat
err_pam_cred_insufficient = date de identificare (credentials) insuficiente
err_pam_cred_unavail = nu s-au putut obţine date de indentificare (credentials)
err_pam_maxtries = s-a atins numărul maxim de încercări
err_pam_perm_denied = acces interzis
err_pam_session = eroare de sesiune
err_pam_sys = eroare de sistem
err_pam_user_unknown = utilizator necunoscut
err_perm_dir = nu s-a putut schimba dosarul (folder-ul) curent
err_perm_group = nu s-a putut face downgrade permisiunilor de grup
err_perm_user = nu s-a putut face downgrade permisiunilor de utilizator
f1 = F1 opreşte sistemul
f2 = F2 resetează
login = utilizator:
logout = opreşte sesiunea
numlock = numlock
password = parolă:
shell = shell
wayland = wayland
xinitrc = xinitrc
+45
View File
@@ -0,0 +1,45 @@
capslock = capslock
err_alloc = не удалось выделить память
err_bounds = за пределами индекса
err_chdir = не удалось открыть домашнюю папку
err_console_dev = не удалось получить доступ к консоли
err_dgn_oob = отладочное сообщение (log)
err_domain = неверный домен
err_hostname = не удалось получить имя хоста
err_mlock = сбой блокировки памяти
err_null = нулевой указатель
err_pam = pam транзакция не удалась
err_pam_abort = pam транзакция прервана
err_pam_acct_expired = срок действия аккаунта истек
err_pam_auth = ошибка аутентификации
err_pam_authinfo_unavail = не удалось получить информацию о пользователе
err_pam_authok_reqd = токен истек
err_pam_buf = ошибка буфера памяти
err_pam_cred_err = не удалось установить полномочия
err_pam_cred_expired = полномочия истекли
err_pam_cred_insufficient = недостаточо полномочий
err_pam_cred_unavail = не удалось получить полномочия
err_pam_maxtries = лимит попыток исчерпан
err_pam_perm_denied = доступ запрещен
err_pam_session = ошибка сессии
err_pam_sys = системная ошибка
err_pam_user_unknown = неизвестный пользователь
err_path = не удалось установить путь
err_perm_dir = не удалось изменить текущий каталог
err_perm_group = не удалось понизить права доступа группы
err_perm_user = не удалось понизить права доступа пользователя
err_pwnam = не удалось получить информацию о пользователе
err_user_gid = не удалось установить GID пользователя
err_user_init = не удалось инициализировать пользователя
err_user_uid = не удалось установить UID пользователя
err_xsessions_dir = не удалось найти сессионную папку
err_xsessions_open = не удалось открыть сессионную папку
f1 = F1 выключить
f2 = F2 перезагрузить
login = логин:
logout = logged out
numlock = numlock
password = пароль:
shell = shell
wayland = wayland
xinitrc = xinitrc
+6
View File
@@ -0,0 +1,6 @@
#%PAM-1.0
auth include login
account include login
password include login
session include login
+1
View File
@@ -0,0 +1 @@
/usr/bin/ly -- gen_context(system_u:object_r:ly_exec_t,s0)
+41
View File
@@ -0,0 +1,41 @@
## <summary>policy for ly</summary>
########################################
## <summary>
## Execute ly_exec_t in the ly domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`ly_domtrans',`
gen_require(`
type ly_t, ly_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, ly_exec_t, ly_t)
')
######################################
## <summary>
## Execute ly in the caller domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ly_exec',`
gen_require(`
type ly_exec_t;
')
corecmd_search_bin($1)
can_exec($1, ly_exec_t)
')
Executable
+32
View File
@@ -0,0 +1,32 @@
policy_module(ly, 1.0.0)
########################################
#
# Declarations
#
type ly_t;
type ly_exec_t;
init_daemon_domain(ly_t, ly_exec_t)
permissive ly_t;
########################################
#
# ly local policy
#
allow ly_t self:capability { setgid setuid };
allow ly_t self:process { fork signal_perms };
allow ly_t self:process transition;
allow ly_t self:fifo_file rw_fifo_file_perms;
allow ly_t self:unix_stream_socket create_stream_socket_perms;
domain_use_interactive_fds(ly_t)
files_read_etc_files(ly_t)
auth_use_nsswitch(ly_t)
logging_send_audit_msgs(ly_t)
miscfiles_read_localization(ly_t)
+2 -2
View File
@@ -281,11 +281,11 @@ void config_defaults()
config.max_password_len = 255; config.max_password_len = 255;
config.mcookie_cmd = strdup("/usr/bin/mcookie"); config.mcookie_cmd = strdup("/usr/bin/mcookie");
config.min_refresh_delta = 5; config.min_refresh_delta = 5;
config.path = strdup("/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin"); config.path = strdup("/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin");
config.restart_cmd = strdup("/sbin/shutdown -r now"); config.restart_cmd = strdup("/sbin/shutdown -r now");
config.save = true; config.save = true;
config.save_file = strdup("/etc/ly/save"); config.save_file = strdup("/etc/ly/save");
config.service_name = strdup("login"); config.service_name = strdup("ly");
config.shutdown_cmd = strdup("/sbin/shutdown -a now"); config.shutdown_cmd = strdup("/sbin/shutdown -a now");
config.term_reset_cmd = strdup("/usr/bin/tput reset"); config.term_reset_cmd = strdup("/usr/bin/tput reset");
config.tty = 2; config.tty = 2;
Submodule sub/argoat updated: 36c41f09ec...76d1e23b5e.
Submodule sub/configator updated: c3e1ef1754...8cec178619.
Submodule sub/ctypes updated: 5dd979d364...eb4b36559d.
Submodule sub/dragonfail updated: 6b40d1f8b7...0a2492c6aa.
Submodule sub/termbox_next updated: d356892786...23fff64470.