-
-
Notifications
You must be signed in to change notification settings - Fork 397
[WRAPPER] wrapped ncurses curterm via set_curterm; add selinux symbol to (mkdir, find) #3400
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
Conversation
|
PTAL! |
|
For Global symbol like NCurses uses, they are some limitation with box64 wrapping... So I have added some hack to workaround those limitation. Take a look at You should not need to DATAM(cur_term), like for the other global variables... But what be missing probably is the appropriate calls to |
This can be resolved by pushing a new commit. |
ff69ba4 to
f67c676
Compare
Signed-off-by: Zewei Yang <yangzewei@loongson.cn>
|
Thanks, merging this now. |
The following are fixes for running Docker containers on box64:
Runtime Environment:
Hardware: loongarch64
Kernel: 6.6.0-130.0.0.107.loongarch64
box64: main
x86 container: debian:sid-slim
Specific modifications:
wrappedlibtinfo6:
GO added
_nc_basename,_nc_is_abs_path,_nc_rootname, anduse_tioctl.GOM added
_nc_tiparm,del_curterm,set_curterm, andsetupterm.DATAM added
cur_term.The above modifications are due to errors encountered during the
clear/resettranslation runtime.cur_term, as a pointer to a TERMINAL type structure, needs to be encapsulated by DATAM. Because ncurses generally usesreentrantas a build parameter, the global symbolcur_termwill not be updated. The actual pointer is stored in_nc_prescreen._cur_termorSCREEN->_term, andcur_termcannot be directly accessed. Therefore, a layout-matched TERMINAL shadow needs to be constructed.wrappedselinux:
GO added
setfileconto fix missing symbols in thefindfunction.GO added
context_freecontext_newcontext_strcontext_type_getcontext_type_setgetcon_rawgetfscreatecon_rawmode_to_security_classsecurity_compute_create_raw...