I'm not a lawyer, but I wouldn't rely on legal advice on a forum like this.
Where to get trusted legal advice? A lawyer of course. Still, there are some good sites where lawyers are involved. Are you asking for a contact or a link for your country?
btw, Coffee shops and bars are also bad places to get medical advice.
The ability to attach a license to a file, and to be able to search for a license is still being tested and as a technical issue can be reasonably discussed.
Around the world Intellectual Property laws are still being debated and tested by governments, and lobbyists are finding lots of work.