pymumu / jail-shell

Jail-shell is a linux security tool mainly using chroot, namespaces technologies, limiting users to perform specific commands, and access sepcific directories.
GNU General Public License v2.0
110 stars 20 forks source link

Build error #10

Open johnbritto1 opened 3 years ago

johnbritto1 commented 3 years ago

root@vm:~/jail-shell# make make -C jail-cmd all make[1]: Entering directory '/root/jail-shell/jail-cmd' cc -g -O2 -Werror -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -c -o jail-cmd.o jail-cmd.c In file included from /usr/include/string.h:495, from jail-cmd.h:10, from jail-cmd.c:5: In function ‘strncpy’, inlined from ‘cmd_init’ at jail-cmd.c:92:3: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘builtin_strncpy’ specified bound 32 equals destination size [-Werror=stringop-truncation] 106 | return _builtinstrncpy_chk (dest, src, len, bos (__dest)); | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: [: jail-cmd.o] Error 1 make[1]: Leaving directory '/root/jail-shell/jail-cmd' make: [Makefile:14: JAIL_CMD] Error 2

root@vm:~/jail-shell# lsb_release -a No LSB modules are available. Distributor ID: Linuxmint Description: Linux Mint 20 Release: 20 Codename: ulyana

KHIT93 commented 3 years ago

I can confirm this also behaves the same on plain Ubuntu 20.04 LTS 64-bit Switching the default gcc 9.3.0 to 8.4.0 og 10.2.0 gies a different error message Ubuntu 18.04 does however compile it with no errors

ubuntu@gracious-loach:/usr/local/src/jail-shell$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal