Bug 1957705

Summary: RFE: make gnome-calculator internet access attemps configurable system-wide
Product: Red Hat Enterprise Linux 8 Reporter: Phil Jasbutis <pjasbuti>
Component: gnome-calculatorAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Petr Schindler <pschindl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: mcatanza, mclasen, sbarcomb, tpelka, tpopela
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-calculator-3.28.2-2.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:34:22 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Phil Jasbutis 2021-05-06 10:31:40 UTC
3. What is the nature and description of the request?

- In enterprise environments there are typically regulations that application are not allowed to access the internet by default.
- gnome-calculator has been identified trying to access the internet to pull e.g. exchange rates.
- Due to company policies (prevent unwanted internet connections) this behavior should be made configurable (offline-mode for gnome-calculator)


4. Why does the customer need this? (List the business requirements here)

- To fulfill compliance requirements and company regulations.
- Firewall and local logs get cleaner if the access attemps of the gnome-calculator do not show up anymore.


5. How would the customer like to achieve this? (List the functional requirements here)

- suggestion: add a dconf value recognized by gnome-calculator which let's admin decide/configure if online-mode or offline-mode is system default.
- customer would like to have a commandline way to configure behavior on system wide level.
- it is ok to keep the current beahvior (online-mode) as default.


6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

1. set a dconf value to the newly implemented key to "false".
2. log in as any user on gnome3 desktop
3. start gnome-calculator from terminal: there should not be made any request to the internet
4. using the calculator: there should not be made any request to the internet


7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

There is an upstream issue [1] which is requesting similar functionality for different reasons.

[1] https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/58


8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

- RHEL 8.4


9. Is the sales team involved in this request and do they have any additional input?

- no


10. List any affected packages or components.

- gnome-calculator-3.28.2-1.el8.x86_64


11. Would the customer be able to assist in testing this functionality if implemented?

- yes, customer is highly engaged to support testing

Comment 2 Ray Strode [halfline] 2021-05-13 18:39:32 UTC
Upstream already has a key "refresh_interval" to set how often it hits the network. I've just proposed a merge request here:

https://gitlab.gnome.org/GNOME/gnome-calculator/-/merge_requests/89

to make it treat a value of 0 as "don't ever touch the network at all".

There's a bit of a delta between Red Hat Enterprise Linux 8 and the latest upstream, so the above merge request and some other patches will need to get backported.

Comment 9 errata-xmlrpc 2021-11-09 19:34:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381