Skip to content

Commit

Permalink
rename coolforkit -> coolforkit-caps, coolforkitns -> coolforkit-ns
Browse files Browse the repository at this point in the history
update man pages to point to coolforkit-ns

Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I80fa7328f601e5599fe47153b1881027e34f8403
  • Loading branch information
caolanm committed Aug 19, 2024
1 parent 5e4d2e1 commit fa0e74f
Show file tree
Hide file tree
Showing 20 changed files with 49 additions and 45 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,28 @@ browser/dist
browser/compilets
browser/typescript_js

coolforkit
coolforkitns
coolforkit-caps
coolforkit-nocaps
coolforkit-ns
connect
lokitclient
coolwsd
loolwsd
coolforkit
coolmount
coolmap
coolconvert
coolsocketdump
coolstress
coolconfig
loolconfig
coolforkit-nocaps
loadtest
unittest
clientnb
libsimd.a
coolwsd-inproc
coolbench
coolforkitns

# Fuzzer
*_fuzzer
Expand Down
32 changes: 17 additions & 15 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ SUBDIRS = . browser test cypress_test
export ENABLE_DEBUG

bin_PROGRAMS = \
coolforkit \
coolforkitns \
coolforkit-caps \
coolforkit-ns \
coolmount \
coolstress \
coolconvert coolconfig
Expand All @@ -36,7 +36,7 @@ endif
dist_bin_SCRIPTS = coolwsd-systemplate-setup

man_MANS = man/coolwsd.1 \
man/coolforkit.1 \
man/coolforkit-ns.1 \
man/coolconvert.1 \
man/coolconfig.1 \
man/coolstress.1 \
Expand Down Expand Up @@ -206,17 +206,19 @@ coolforkit_sources = kit/ChildSession.cpp \
kit/Kit.cpp \
kit/KitWebSocket.cpp

coolforkit_SOURCES = $(coolforkit_sources) \
$(shared_sources) \
kit/forkit-main.cpp
coolforkit_ldadd = libsimd.a

coolforkit_LDADD = libsimd.a
coolforkit_caps_SOURCES = $(coolforkit_sources) \
$(shared_sources) \
kit/forkit-main.cpp

coolforkitns_SOURCES = $(coolforkit_sources) \
$(shared_sources) \
kit/forkit-main.cpp
coolforkit_caps_LDADD = ${coolforkit_ldadd}

coolforkitns_LDADD = libsimd.a
coolforkit_ns_SOURCES = $(coolforkit_sources) \
$(shared_sources) \
kit/forkit-main.cpp

coolforkit_ns_LDADD = ${coolforkit_ldadd}

if ENABLE_DEBUG
coolwsd_inproc_SOURCES = $(coolwsd_sources) \
Expand All @@ -225,13 +227,13 @@ coolwsd_inproc_SOURCES = $(coolwsd_sources) \
wsd/coolwsd-inproc.cpp

coolwsd_inproc_LDADD = ${coolwsd_LDADD} \
${coolforkit_LDADD}
${coolforkit_ldadd}
endif

if ENABLE_LIBFUZZER
coolforkit_SOURCES += \
coolforkit_caps_SOURCES += \
common/DummyTraceEventEmitter.cpp
coolforkitns_SOURCES += \
coolforkit_ns_SOURCES += \
common/DummyTraceEventEmitter.cpp

common_fuzzer_sources = \
Expand Down Expand Up @@ -484,7 +486,7 @@ RUN_GDB = $(if $(GDB_FRONTEND),$(GDB_FRONTEND),gdb --tui --args)
if ENABLE_LIBFUZZER
CLEANUP_DEPS=
else
CLEANUP_DEPS=coolwsd coolmount coolforkit coolforkitns
CLEANUP_DEPS=coolwsd coolmount coolforkit-caps coolforkit-ns
endif

# Build coolwsd and coolmount first, so we can cleanup before updating
Expand Down
8 changes: 4 additions & 4 deletions coolwsd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ echo "account required pam_unix.so" >> %{buildroot}/etc/pam.d/coolwsd
/usr/bin/loolwsd
/usr/bin/coolwsd-systemplate-setup
/usr/bin/loolwsd-systemplate-setup
/usr/bin/coolforkitns
/usr/bin/coolforkit-ns
/usr/bin/coolconvert
/usr/bin/coolconfig
/usr/bin/loolconfig
Expand All @@ -77,7 +77,7 @@ echo "account required pam_unix.so" >> %{buildroot}/etc/pam.d/coolwsd
/usr/share/doc/coolwsd/reference.md
/usr/share/doc/coolwsd/THIRDPARTYLICENSES
/usr/share/man/man1/coolwsd.1.gz
/usr/share/man/man1/coolforkit.1.gz
/usr/share/man/man1/coolforkit-ns.1.gz
/usr/share/man/man1/coolconvert.1.gz
/usr/share/man/man1/coolconfig.1.gz
/usr/share/man/man1/coolstress.1.gz
Expand All @@ -96,7 +96,7 @@ echo "account required pam_unix.so" >> %{buildroot}/etc/pam.d/coolwsd

%files deprecated
%defattr(-,root,root,-)
/usr/bin/coolforkit
/usr/bin/coolforkit-caps
/usr/bin/coolmount

%pre
Expand Down Expand Up @@ -142,7 +142,7 @@ coolconfig generate-proof-key >/dev/null 2>&1
if [ $COOLWSD_IS_ACTIVE == "1" ]; then systemctl start coolwsd; fi

%post deprecated
setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit
setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps
setcap cap_sys_admin=ep /usr/bin/coolmount

%preun
Expand Down
2 changes: 1 addition & 1 deletion debian/coolwsd-deprecated.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
usr/bin/coolforkit
usr/bin/coolforkit-caps
usr/bin/coolmount
2 changes: 1 addition & 1 deletion debian/coolwsd-deprecated.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

case "$1" in
configure)
setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit || true
setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps || true
setcap cap_sys_admin=ep /usr/bin/coolmount || true
;;

Expand Down
2 changes: 1 addition & 1 deletion debian/coolwsd.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
etc/
usr/bin/coolconfig
usr/bin/coolconvert
usr/bin/coolforkitns
usr/bin/coolforkit-ns
usr/bin/coolstress
usr/bin/coolwsd
usr/bin/coolwsd-systemplate-setup
Expand Down
2 changes: 1 addition & 1 deletion docker/from-source-gh-action/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ COPY /start-collabora-online.sh /start-collabora-online.sh

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
adduser --quiet --system --group --home /opt/cool cool && \
rm -rf /opt/cool && \
Expand Down
4 changes: 2 additions & 2 deletions docker/from-source/ArchLinux
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY /start-collabora-online.sh /

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
useradd --system --user-group --create-home --home-dir /opt/cool cool && \
rm -rf /opt/cool && \
Expand All @@ -38,4 +38,4 @@ RUN usermod -u 972 cool
# switch to cool user (use numeric user id to be compatible with Kubernetes Pod Security Policies)
USER 972

CMD ["/start-collabora-online.sh"]
CMD ["/start-collabora-online.sh"]
2 changes: 1 addition & 1 deletion docker/from-source/Debian
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY /start-collabora-online.sh /

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
adduser --quiet --system --group --home /opt/cool cool && \
rm -rf /opt/cool && \
Expand Down
2 changes: 1 addition & 1 deletion docker/from-source/Fedora
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY /start-collabora-online.sh /

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
groupadd -r cool && \
useradd -g cool -r cool -d /opt/cool -s /bin/bash && \
Expand Down
2 changes: 1 addition & 1 deletion docker/from-source/Ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COPY /start-collabora-online.sh /

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
adduser --quiet --system --group --home /opt/cool cool && \
rm -rf /opt/cool && \
Expand Down
2 changes: 1 addition & 1 deletion docker/from-source/openSUSE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY /start-collabora-online.sh /

# set up Collabora Online (normally done by postinstall script of package)
# Fix permissions
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit && \
RUN setcap cap_fowner,cap_chown,cap_sys_chroot=ep /usr/bin/coolforkit-caps && \
setcap cap_sys_admin=ep /usr/bin/coolmount && \
groupadd -r cool && \
useradd -g cool -r cool -d /opt/cool -s /bin/bash && \
Expand Down
2 changes: 1 addition & 1 deletion man/coolconfig.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ update\-system\-template
.SS "generate\-proof\-key"
The \fBgenerate\-proof\-key\fR command creates an RSA key pair in /etc/coolwsd for the WOPI Proof headers. The postinstall script of coolwsd package usually creates this RSA key pair in case of new installation.
.SH "SEE ALSO"
coolforkit(1), coolconvert(1), coolwsd(1), coolwsd-systemplate-setup(1), coolmount(1)
coolforkit-ns(1), coolconvert(1), coolwsd(1), coolwsd-systemplate-setup(1), coolmount(1)
2 changes: 1 addition & 1 deletion man/coolconvert.1
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ coolconvert OPTIONS FILE(S)
\fB\-\-no\-check\-certificate\fR Disable checking of SSL certs
.PP
.SH "SEE ALSO"
coolwsd(1), coolforkit(1), coolconfig(1), coolwsd-systemplate-setup(1), coolmount(1)
coolwsd(1), coolforkit-ns(1), coolconfig(1), coolwsd-systemplate-setup(1), coolmount(1)
6 changes: 3 additions & 3 deletions man/coolforkit.1 → man/coolforkit-ns.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.TH COOLFORKIT "1" "May 2018" "coolforkit " "User Commands"
.TH COOLFORKIT "1" "May 2018" "coolforkit-ns " "User Commands"
.SH NAME
coolforkit \- Utility that spawns LOK instances for Collabora Online
coolforkit-ns \- Utility that spawns LOK instances for Collabora Online
.SH SYNOPSIS
coolforkit OPTIONS
coolforkit-ns OPTIONS
.SH DESCRIPTION
Single-threaded process that spawns LibreOfficeKit (LOK) instances.
.PP
Expand Down
2 changes: 1 addition & 1 deletion man/coolmount.1
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This is a very tiny helper to allow overlay mounting.
.PP
\fBNote\fR: Running this standalone is not possible. It is used internally by coolwsd when it creates the jail for the document.
.SH "SEE ALSO"
coolwsd(1), coolconvert(1), coolconfig(1), coolwsd-systemplate-setup(1), coolforkit(1)
coolwsd(1), coolconvert(1), coolconfig(1), coolwsd-systemplate-setup(1), coolforkit-ns(1)
2 changes: 1 addition & 1 deletion man/coolstress.1
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ in terms of keys-per-second, as well as creating unusual documents from a spell/
perspective.

.SH "SEE ALSO"
coolforkit(1), coolconvert(1), coolwsd(1)
coolforkit-ns(1), coolconvert(1), coolwsd(1)
2 changes: 1 addition & 1 deletion man/coolwsd-systemplate-setup.1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ coolwsd-systemplate-setup <chroot template directory for system libs to create>
.SH DESCRIPTION
coolwsd-systemplate-setup creates a minimal system template for running the LibreOfficeKit in a chroot jail. The system template contains the bare minimum of system libraries to run LibreOfficeKit, and also fonts and locale data from the system.
.SH "SEE ALSO"
coolforkit(1), coolconvert(1), coolconfig(1), coolwsd(1), coolmount(1)
coolforkit-ns(1), coolconvert(1), coolconfig(1), coolwsd(1), coolmount(1)
2 changes: 1 addition & 1 deletion man/coolwsd.1
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ coolwsd OPTIONS
\fB\-\-use\-env\-vars\fR Override coolwsd.xml config with options from the environment variables described in https://col.la/dockercodeconfigviaenv
.PP
.SH "SEE ALSO"
coolforkit(1), coolconvert(1), coolconfig(1), coolwsd-systemplate-setup(1), coolmount(1)
coolforkit-ns(1), coolconvert(1), coolconfig(1), coolwsd-systemplate-setup(1), coolmount(1)
8 changes: 4 additions & 4 deletions wsd/COOLWSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3516,7 +3516,7 @@ bool COOLWSD::createForKit()
args.push_back("-tt");
args.push_back("-s");
args.push_back("256");
args.push_back(parentPath + "coolforkit");
args.push_back(parentPath + "coolforkit-caps");
#elif VALGRIND_COOLFORKIT
NoCapsForKit = true;
NoSeccomp = true;
Expand All @@ -3533,7 +3533,7 @@ bool COOLWSD::createForKit()
args.push_back("--error-limit=no");
args.push_back("--num-callers=128");
std::string nocapsCopy = parentPath + "coolforkit-nocaps";
FileUtil::copy(parentPath + "coolforkit", nocapsCopy, true, true);
FileUtil::copy(parentPath + "coolforkit-caps", nocapsCopy, true, true);
args.push_back(nocapsCopy);
#endif
args.push_back("--systemplate=" + SysTemplate);
Expand Down Expand Up @@ -3582,12 +3582,12 @@ bool COOLWSD::createForKit()
std::string forKitPath = std::move(parentPath);
if (EnableMountNamespaces)
{
forKitPath += "coolforkitns";
forKitPath += "coolforkit-ns";
args.push_back("--namespace");
}
else
{
forKitPath += "coolforkit";
forKitPath += "coolforkit-caps";
}
#endif

Expand Down

0 comments on commit fa0e74f

Please sign in to comment.