-
Notifications
You must be signed in to change notification settings - Fork 8
RDKMVE-1815: add support for populating DAC AppStore URL in RFC from DAC_APPSTORE_URL #93
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
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,9 @@ install_community_rfc_configs() { | |||||||||||||||||||||||
| if [ -f "${MANIFEST_PATH_RDK_IMAGES}/conf/community-rfc-configs.ini" ]; then | ||||||||||||||||||||||||
| bbnote "Installing community RFC configs..." | ||||||||||||||||||||||||
| install -D -m 0644 ${MANIFEST_PATH_RDK_IMAGES}/conf/community-rfc-configs.ini ${IMAGE_ROOTFS}/etc/rfcdefaults/community-rfc-configs.ini | ||||||||||||||||||||||||
| if [ -n "${DAC_APPSTORE_URL}" ]; then | ||||||||||||||||||||||||
| echo "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.DAC.ConfigURL=${DAC_APPSTORE_URL}" >> ${IMAGE_ROOTFS}/etc/rfcdefaults/community-rfc-configs.ini | ||||||||||||||||||||||||
|
Comment on lines
25
to
+27
|
||||||||||||||||||||||||
| install -D -m 0644 ${MANIFEST_PATH_RDK_IMAGES}/conf/community-rfc-configs.ini ${IMAGE_ROOTFS}/etc/rfcdefaults/community-rfc-configs.ini | |
| if [ -n "${DAC_APPSTORE_URL}" ]; then | |
| echo "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.DAC.ConfigURL=${DAC_APPSTORE_URL}" >> ${IMAGE_ROOTFS}/etc/rfcdefaults/community-rfc-configs.ini | |
| config_file=${IMAGE_ROOTFS}/etc/rfcdefaults/community-rfc-configs.ini | |
| install -D -m 0644 ${MANIFEST_PATH_RDK_IMAGES}/conf/community-rfc-configs.ini "${config_file}" | |
| if [ -n "${DAC_APPSTORE_URL}" ]; then | |
| # Ensure the config file ends with a newline before appending | |
| if [ -s "${config_file}" ] && [ -n "$(tail -c1 "${config_file}" 2>/dev/null)" ]; then | |
| echo >> "${config_file}" | |
| fi | |
| echo "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.DAC.ConfigURL=${DAC_APPSTORE_URL}" >> "${config_file}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DAC_APPSTORE_URL variable is used directly in the echo command without validation or quoting. If the URL contains special shell characters (like semicolons, pipes, backticks, or dollar signs), this could lead to command injection or malformed configuration. Consider validating the URL format or properly quoting the variable expansion to prevent potential security issues.