Skip to content
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

2871 add debug symbols to DEBs packages #2872

Closed
wants to merge 1 commit into from

Conversation

tdrauncieal
Copy link
Contributor

@tdrauncieal tdrauncieal commented Mar 7, 2024

Related issue
#2871

Description

It is intended to implement the necessary changes to create the new symbol packages for manager and agent, which can be installed on the endpoint when appropriate.

Logs example

Tests

tail of build output

.
.
.
Finished running lintian.

WARNING generated by debuild:                                                                                                                                                                                      
Making debian/rules executable!

+ deb_file=wazuh-agent_4.9.0-test-local                                                                                                                                                                            
+ symbols_deb_file=wazuh-agent-dbg_4.9.0-test-local                                                                                                                                                                
+ [[ amd64 == \p\p\c\6\4\l\e ]]                                                                                                                                                                                    
+ deb_file=wazuh-agent_4.9.0-test-local_amd64.deb                                                                                                                                                                  
+ symbols_deb_file=wazuh-agent-dbg_4.9.0-test-local_amd64.deb                                                                                                                                                      
+ pkg_path=/build_wazuh/agent                                                                                                                                                                                      
+ [[ no == \y\e\s ]]                                                                                                                                                                                               
+ mv /build_wazuh/agent/wazuh-agent_4.9.0-test-local_amd64.deb /var/local/wazuh                                                                                                                                    
+ mv /build_wazuh/agent/wazuh-agent-dbg_4.9.0-test-local_amd64.deb /var/local/wazuh                                                                                                                                
Package wazuh-agent-dbg_4.9.0-test-local_amd64.deb added to /tmp.              

packages files generated

✔ 12:06 $ ll -tr /tmp/*.deb                                                                                                                                                                                        
-rw-r--r-- 1 root root 308313194 Mar  7 00:39 /tmp/wazuh-manager_4.9.0-test-local_amd64.deb                                                                                                                        
-rw-r--r-- 1 root root   6511018 Mar  7 00:39 /tmp/wazuh-manager-dbg_4.9.0-test-local_amd64.deb                                                                                                                    
-rw-r--r-- 1 root root  10542740 Mar  7 11:45 /tmp/wazuh-agent_4.9.0-test-local_amd64.deb                                                                                                                          
-rw-r--r-- 1 root root   1577522 Mar  7 11:45 /tmp/wazuh-agent-dbg_4.9.0-test-local_amd64.deb                                                                                                                      

wazuh-manager-dbg install example

root@9eeb6e4fe461:/# dpkg -l wazuh-manager-dbg                                                                                                                                                                     
Desired=Unknown/Install/Remove/Purge/Hold                                                                                                                                                                          
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend                                                                                                                                     
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)                                                                                                                                                         
||/ Name              Version          Architecture Description                                                                                                                                                    
+++-=================-================-============-=================================================================================================                                                              
ii  wazuh-manager-dbg 4.9.0-test-local amd64        Debug symbols for wazuh-manager, this package contains debug symbols for debugging wazuh-manager.                                                              
root@9eeb6e4fe461:/# dpkg -L wazuh-manager-dbg                                                                                                                                                                     
/.                                                                                                                                                                                                                 
/usr                                                                                                                                                                                                               
/usr/lib                                                                                                                                                                                                           
/usr/lib/debug                                                                                                                                                                                                     
/usr/lib/debug/var                                                                                                                                                                                                 
/usr/lib/debug/var/ossec                                                                                                                                                                                           
/usr/lib/debug/var/ossec/lib                                                                                                                                                                                       
/usr/lib/debug/var/ossec/lib/librocksdb.so.8                                                                                                                                                                       
/usr/lib/debug/var/ossec/lib/libpython3.10.so.1.0                                                                                                                                                                  
/usr/lib/debug/var/ossec/lib/libcontent_manager.so                                                                                                                                                                 
/usr/lib/debug/var/ossec/lib/libindexer_connector.so                                                                                                                                                               
/usr/lib/debug/var/ossec/lib/libvulnerability_scanner.so                                                                                                                                                           
/usr/lib/debug/var/ossec/lib/libstdc++.so.6                                                                                                                                                                        
/usr/lib/debug/var/ossec/lib/libwazuhshared.so                                                                                                                                                                     
/usr/lib/debug/var/ossec/lib/libwazuhext.so                                                                                                                                                                        
/usr/lib/debug/var/ossec/lib/libgcc_s.so.1                                                                                                                                                                         
/usr/lib/debug/var/ossec/lib/librouter.so                                                                                                                                                                          
/usr/lib/debug/var/ossec/bin                                                                                                                                                                                       
/usr/lib/debug/var/ossec/bin/verify-agent-conf                                                                                                                                                                     
/usr/lib/debug/var/ossec/bin/wazuh-db                                                                                                                                                                              
/usr/lib/debug/var/ossec/bin/wazuh-analysisd                                                                                                                                                                       
/usr/lib/debug/var/ossec/bin/wazuh-execd                                                                                                                                                                           
/usr/lib/debug/var/ossec/bin/wazuh-syscheckd                                                                                                                                                                       
/usr/lib/debug/var/ossec/bin/clear_stats                                                                                                                                                                           
/usr/lib/debug/var/ossec/bin/wazuh-remoted                                                                                                                                                                         
/usr/lib/debug/var/ossec/bin/wazuh-maild                                                                                                                                                                           
/usr/lib/debug/var/ossec/bin/wazuh-csyslogd                                                                                                                                                                        
/usr/lib/debug/var/ossec/bin/wazuh-regex                                                                                                                                                                           
/usr/lib/debug/var/ossec/bin/wazuh-integratord                                                                                                                                                                     
/usr/lib/debug/var/ossec/bin/wazuh-agentlessd                                                                                                                                                                      
/usr/lib/debug/var/ossec/bin/wazuh-dbd                                                                                                                                                                             
/usr/lib/debug/var/ossec/bin/wazuh-logtest-legacy                                                                                                                                                                  
/usr/lib/debug/var/ossec/bin/wazuh-authd                                                                                                                                                                           
/usr/lib/debug/var/ossec/bin/wazuh-monitord                                                                                                                                                                        
/usr/lib/debug/var/ossec/bin/wazuh-logcollector                                                                                                                                                                    
/usr/lib/debug/var/ossec/bin/wazuh-modulesd                                                                                                                                                                        
/usr/lib/debug/var/ossec/bin/wazuh-keystore                                                                                                                                                                        
/usr/lib/debug/var/ossec/bin/manage_agents                                                                                                                                                                         
/usr/lib/debug/var/ossec/bin/wazuh-reportd                                                                                                                                                                         
/usr/lib/debug/var/ossec/bin/agent_control                                                                                                                                                                         
/usr/share                                                                                                                                                                                                         
/usr/share/doc                                                                                                                                                                                                     
/usr/share/doc/wazuh-manager-dbg                                                                                                                                                                                   
/usr/share/doc/wazuh-manager-dbg/copyright                                                                                                                                                                         
/usr/share/doc/wazuh-manager-dbg/changelog.gz                                                                                                                                                                      
/usr/share/doc/wazuh-manager-dbg/changelog.Debian.gz                                                                                                                                                               
  • Build the package in any supported platform
    • Linux
    • Windows
    • macOS
    • Solaris
    • AIX
    • HP-UX
  • Package installation
  • Package upgrade
  • Package downgrade
  • Package remove
  • Package install/remove/install
  • Change added to CHANGELOG.md
  • Tests for Linux RPM
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • %files section is correctly updated if necessary

@tdrauncieal tdrauncieal force-pushed the 2871-add-debug-symbols-to-DEBs branch from d0257a8 to 3c6e9d6 Compare March 7, 2024 19:09
@tdrauncieal tdrauncieal self-assigned this Mar 7, 2024
@tdrauncieal tdrauncieal closed this Mar 7, 2024
@tdrauncieal tdrauncieal deleted the 2871-add-debug-symbols-to-DEBs branch March 7, 2024 20:09
@tdrauncieal
Copy link
Contributor Author

tdrauncieal commented Mar 7, 2024

closed due to bugs with github action related to the branch name,
they were renamed, due the branch name is expected to be in lowercase only.

IMAGE_ID=$(echo ${IMAGE_ID} | tr '[A-Z]' '[a-z]')

replaced by #2875

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.

1 participant