Skip to content

Fix Dockerfile.full build#1204

Closed
ii343hbka wants to merge 145 commits into3proxy:masterfrom
ii343hbka:patch-1
Closed

Fix Dockerfile.full build#1204
ii343hbka wants to merge 145 commits into3proxy:masterfrom
ii343hbka:patch-1

Conversation

@ii343hbka
Copy link
Copy Markdown

@ii343hbka ii343hbka commented Apr 2, 2026

apt install -y because apt selects libpam-doc as dependency and requires implicit confirmation

 > [buildenv 3/3] RUN cd 3proxy && apt update && apt install libssl-dev libpam-dev libpcre2-dev && make -f Makefile.Linux && strip bin/3proxy && strip bin/StringsPlugin.ld.so && strip bin/TrafficPlugin.ld.so && strip bin/PCREPlugin.ld.so && strip bin/TransparentPlugin.ld.so && strip bin/SSLPlugin.ld.so && mkdir /usr/l
ocal/lib/3proxy && cp "/lib/`gcc -dumpmachine`"/libdl.so.* /usr/local/lib/3proxy/:                                                                                                                                                                                                                                             
0.164                                                                                                                                                          
0.164 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.                                                                          
0.164                                                                                                                                                                                                                                                                                                                          
0.267 Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]                                                                                             
0.330 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]                                                                                                                                                                                                                                                    
0.352 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]                                                                                                                                                                                                                                          
0.375 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9671 kB]                                                                                                                                                                                                                                                  
0.521 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [5412 B]                                                                                                                                                                                                                                           
0.548 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [119 kB]                                                                                                                                                                                                                                 
1.095 Fetched 10.0 MB in 1s (11.0 MB/s)                                                                                                                                                                                                                                                                                        
1.095 Reading package lists...                                                                                                                                                                                                                                                                                                 
1.596 Building dependency tree...                                                                                                                                                                                                                                                                                              
1.757 Reading state information...                                                                                                                                                                                                                                                                                             
1.776 17 packages can be upgraded. Run 'apt list --upgradable' to see them.                                                                                                                                                                                                                                                    
1.792                                                                                                                                                                                                                                                                                                                          
1.792 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.                                                                                                                                                                                                                                          
1.792                                                                                                                                                                                                                                                                                                                          
1.795 Reading package lists...                                                                                                                                                                                                                                                                                                 
2.269 Building dependency tree...                                                                                                                                                                                                                                                                                              
2.409 Reading state information...                                                                                                                                                                                                                                                                                             
2.574 libssl-dev is already the newest version (3.5.5-1~deb13u1).                                                                                                                                                                                                                                                              
2.574 libpcre2-dev is already the newest version (10.46-1~deb13u1).                                                                                                                                                                                                                                                            
2.574 libpcre2-dev set to manually installed.                                                                                                                  
2.574 Installing:                                                                                                                                                                                                                                                                                                              
2.574   libpam0g-dev                                                                                                                                                                                                                                                                                                           
2.574                                                                                                                                                                                                                                                                                                                          
2.575 Installing dependencies:                                                                                                                                 
2.575   libpam-doc                                                                                                                                             
2.575                                                                                                                                                          
2.585 Summary:                                                                                                                                                                                                                                                                                                                 
2.585   Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 17                                                                                                                                                                                                                                                            
2.585   Download size: 711 kB                                                                                                                                                                                                                                                                                                  
2.585   Space needed: 1844 kB / 40.7 GB available                                                                                                                                                                                                                                                                              
2.585                                                                                                                                                                                                                                                                                                                          
2.585 Continue? [Y/n] Abort. 

Makefile.inc used 4 spaces instead of tabulation that lead to

13.98 cc  -g  -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER  my_ssl.c                                                                                                          
14.14 cc -o ../../../bin/SSLPlugin.ld.so -fPIC -O2 -fno-strict-aliasing -pthread -shared ssl_plugin.o my_ssl.o -ldl  -l crypto -l ssl                                                                                                                                                                                          
14.19 make[2]: Leaving directory '/3proxy/src/plugins/SSLPlugin'                                                                                                                                                                                                                                                               
14.19 make[2]: Entering directory '/3proxy/src/plugins/PCREPlugin'                                                                                                                                                                                                                                                             
14.31 Makefile.inc:4: *** missing separator.  Stop.                                                                                                                                                                                                                                                                            
14.31 make[2]: Leaving directory '/3proxy/src/plugins/PCREPlugin'                                                                                                                                                                                                                                                              
14.32 make[2]: Entering directory '/3proxy/src/plugins/PamAuth'                                                                                                                                                                                                                                                                
14.45 cc  -g  -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER  pamauth.c                                                                                                         
14.51 cc -o ../../../bin/pamauth.ld.so -fPIC -O2 -fno-strict-aliasing -pthread -shared -lpam pamauth.o                                                                                                                                                                                                                         
14.52 make[2]: Leaving directory '/3proxy/src/plugins/PamAuth'                                                                                                 
14.52 make[1]: Leaving directory '/3proxy/src'                                                                                                                                                                                                                                                                                 
14.53 strip: 'bin/PCREPlugin.ld.so': No such file 

z3APA3A and others added 18 commits March 31, 2026 11:08
…proxy#1203)

Добавлен вызов pam_acct_mgmt() после pam_authenticate() для проверки
прав доступа на уровне PAM (HBAC, истечение пароля, блокировка учётки)
Исправлена передача реального username в pam_start() вместо '3proxy@'

---

Added pam_acct_mgmt() call after pam_authenticate() to enable PAM
account checks (HBAC, password expiration, account lockout).
Fixed pam_start() to pass actual username instead of hardcoded '3proxy@'
Tested with FreeIPA 4.12 + SSSD Rocky Linux 9
@ii343hbka ii343hbka marked this pull request as draft April 2, 2026 15:50
@ii343hbka ii343hbka changed the title Fix Dockerfile to use -y flag for apt install Fix Dockerfile.full build Apr 2, 2026
@ii343hbka ii343hbka marked this pull request as ready for review April 2, 2026 15:59
@z3APA3A z3APA3A force-pushed the master branch 6 times, most recently from 9acb538 to 71d676e Compare April 9, 2026 14:54
@z3APA3A
Copy link
Copy Markdown
Collaborator

z3APA3A commented Apr 12, 2026

Dockerfiles use --assume-yes now

@z3APA3A z3APA3A closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants