Skip to content

Commit a71cda9

Browse files
committed
Initial adaptation for KasperskyOS
1 parent 4b66cf7 commit a71cda9

63 files changed

Lines changed: 2578 additions & 724 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
KasperskyOS team:
2+
- Anastasiya Pavlova <Anastasiya.D.Pavlova@kaspersky.com>
3+
- Alexander Motavin <Alexander.Motavin@kaspersky.com>

.github/issue_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### Subject of the issue
2+
Describe your issue here.
3+
4+
### Your environment
5+
* KasperskyOS CE SDK version
6+
* Qemu / HW version
7+
* Container
8+
* * Docker / Podman version
9+
* * Image
10+
* * Additional parameters (ex: installed packages, launch settings, non-standard configuration)
11+
* Build log with VERBOSE=1
12+
13+
### Steps to reproduce
14+
Tell us how to reproduce this issue. If possible please provide an example.
15+
16+
### Expected behavior
17+
Tell us what should happen.
18+
19+
### Actual behavior
20+
Tell us what happens instead.

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Your checklist for this pull request
2+
3+
- [ ] Make sure you are making a pull request with only KasperskyOS-specific changes.
4+
- [ ] Check the commit's style matches our requested structure.
5+
6+
### Description
7+
Please describe your pull request.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/build/
1+
.idea
2+
.cproject
3+
.project
4+
kos/example/build
5+
kos/unittests/build

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Arun Muralidharan

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## Initial adaptation for KasperskyOS - 2024-06-26
4+
5+
### Changes
6+
7+
* Added scripts to build and run unit tests on KasperskyOS
8+
* Added simple usage example for KasperskyOS
9+
* Unit tests were transformed to use Google Test framework
10+
* Added documentation for KasperskyOS

CLA.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Contributor License Agreement
2+
3+
You accept and agree to the following terms and conditions for Your past, present and future Contributions submitted to the AO Kaspersky Lab ("Company").
4+
5+
1. Definitions.
6+
"You" (or "Your") shall mean the legal owner of the Contribution that is making this CLA with the Company. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
7+
"Contribution" shall mean any original work of authorship, including any derivative works, modifications or additions to an existing work, that is intentionally submitted by You to the Company for inclusion in, or documentation of, any of the products owned or distributed by the Company (the "Work"). You acknowledge that the Company desires to have all contributions made by You under the terms of this CLA and, thus, this CLA will apply to all of your Contributions submitted both before and after the date of signature. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Company or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Company for the purpose of discussing and improving the Work.
8+
2. Grant of Copyright and Patent Licenses.
9+
Subject to the terms and conditions of this Agreement, You hereby grant to the Company and to recipients of software distributed by the Company a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license, including a license, to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, distribute, or sell Your Contributions and the Work.
10+
Subject to the terms and conditions of this Agreement, You hereby grant to the Company and to recipients of the Work distributed by the Company a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, distribute, and otherwise transfer Your Contributions and the Work.
11+
3. Ownership and third party rights.
12+
You represent that you are the sole legal owner and are legally entitled to grant the above license for the Contributions. If:
13+
- (A.) your employer(s) has intellectual property or other rights to your Contributions, you represent that you have both (i.) received express, prior, written permission to make Contributions on behalf of that employer; and (ii.) that your employer has waived any of its rights for or claims in your Contributions to the Company, or
14+
- (B.) if another individual or third party has rights to intellectual property to your Contributions – whether as a result of being a co-inventor, assignee, or other right, you represent that you have both (i.) received express, prior, written permission to make Contributions on behalf of that individual or third party; and (ii.) that such individual or third party has waived any of its rights for or claims in your Contributions to the Company.
15+
You will submit such written permission to the Company at the time of the submission of your Contribution.
16+
4. Your original creation.
17+
You represent that each of Your Contributions is Your original creation (see section 5 for submissions on behalf of others). You represent that Your Contribution submissions include complete details (including required attributions and details of applicable license restrictions) of any third-party license or public domain licenses, or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware or should be aware and which are associated with any part of Your Contributions.
18+
5. Third party owned creation(s).
19+
Should You wish to submit work that is not Your original creation, You may submit it to the Company separately from any Contribution, clearly identifying the complete details of its ownership and source, and any applicable license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work, for example: "Submitted on behalf of a third-party: [named here]." "Owned by third-party: [named here.]" or "Copyright held by third-party: [named here]."
20+
6. Notification.
21+
You agree to notify the Company of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect, including if you become aware of any third party intellectual property rights that are infringed by your Contributions.
22+
7. Assignment.
23+
Neither party may assign this Agreement without the other party’s consent which will not be unreasonably withheld; however, each party may assign this Agreement without the other party’s consent to an entity or individual that acquires all or substantially all of the business or assets of the assigning party or for an individual acquires all of the intellectual property rights in the Contribution owned by such individual, whether by merger, sale of assets, or otherwise, provided that such entity or individual assumes and agrees in writing to be bound by all of the obligations of the assigning party under this Agreement.
24+
8. Entire agreement.
25+
This Agreement is the entire agreement, both written or oral, with respect to the Contributions between the parties. No amendment, modification or waiver of any provision of this Agreement will be effective unless in writing and signed by both parties. If any provision of this Agreement is held to be invalid or unenforceable, the remaining portions will remain in full force and effect and such provision will be enforced to the maximum extent possible so as to affect the intent of the parties and will be reformed to the extent necessary to make such provision valid and enforceable. All notices and other communications herein permitted or required under this Agreement will be sent by postage prepaid, via registered or certified mail or overnight courier, return receipt requested, or delivered personally to the parties at their respective addresses, or to such other address as either party will give to the other party in the manner provided herein for giving notice. Notice will be considered given upon receipt.

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Code contribution workflow
2+
3+
1. Find an open issue or create a new issue on issue tracker for the feature you want to contribute.
4+
2. Fork the project on GitHub. You need to create a feature-branch for your work on your fork, as this way you be able to submit a pull request.
5+
3. Make any necessary changes to the source code.
6+
4. Add tests that verify that your contribution works as expected and modify existing tests if required.
7+
5. Run all tests and make sure all of them pass.
8+
6. Run code coverage to check if the lines of code you added are covered by unit tests.
9+
7. Once your feature is complete, prepare the commit with appropriate message and the issue number.
10+
8. **Create a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) and wait for the users to review. When you submit a pull request, please, agree to the terms of [CLA](CLA.md).**
11+
9. Once everything is done, your pull request gets merged. Your feature will be available with the next release and your name will be added to AUTHORS.

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
MIT License
22

3+
KasperskyOS modification is
4+
© 2024 AO Kaspersky Lab
5+
6+
The original JWT library is:
7+
8+
MIT License
9+
310
Copyright (c) 2017 Arun Muralidharan
411

512
Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)